Previous Up Next

10.2.24 Simplifying and expressing preferentially with cosines

Any trigonometric function can be written in terms of sines and cosines, and even powers of sines can be turned into powers of cosines by using the identity sin(x)2+cos(x)2=1. The trigcos command performs these substitutions.

Example

trigcos(sin(x)^4+cos(x)^2+1)
cos 4xcos 2x+2           

Previous Up Next