Add cosine function and the option to change the phase by degrees
Add cosine function and the option to change the phase by degrees