Simplify Trigonometric Expressions



Hi 

is there a way to simplify 

A*cos(w*t)+B*sin(w*t)

to the form 

K*cos(w*t+c)

Thanks

Regards
Renzo