Previous Up Next

9.2.23  Simplifying and expressing preferentially with sines

Any trigonometric function can be written in terms of sins and coss, and with the identity sin(x)2+cos(x)2=1, the even powers of cos can be turned into powers of sin. The trigsin command performs these substitutions.

Example

trigsin(sin(x)^4+cos(x)^2+1)
     
sin4xsin2x+2           

Previous Up Next