This program demonstrates that when you add sin and cos you get a phase shifted sin.
Use the sliders to change the amplitude of the sin and cos waves, and their angular frequency ω.
In effect you will see that A sin(ωt) + B cos(ωt) = K sin(ω t + φ).
When you stop moving a slider, the sinusoids are drawn.