Show a sin(x) + b cos(x) = c sin(x + d)

This application shows how the sum a sin(x) + b cos(x) kan be constructed. The value of a and b can be changed. The applet calculates the ange between the sum and the sine function. The sum is the diagonal in the rectangle with sides a sin(x) and b cos(x)