Manual

336 Functions and commands
trigx cosx Returns an expression simplified using the formulas
sin(x)^2+cos(x)^2=1 and tan(x)=sin(x)/cos(x). Cos(x) is
given precedence over sin(x) and tan(x) in the result.
trigcos(Expr)
Example:
trigcos(sin(x)^4+sin(x)^2) returns cos(x)^4-
3*cos(x)^2+2
trigx tanx Returns an expression simplified using the formulas
sin(x)^2+cos(x)^2=1 and tan(x)=sin(x)/cos(x). Tan(x) is
given precedence over sin(x) and cos(x) in the result.
trigtan(Expr)
Example:
trigtan(cos(x)^4+sin(x)^2) returns
(tan(x)^4+tan(x)^2+1)/(tan(x)^4+2*tan(x)^2+1)
atrig2ln Returns an expression with inverse trigonometric functions
rewritten using the natural logarithm function.
atrig2ln(Expr)
Example:
atrig2ln(atan(x)) returns
tlin Returns a trigonometric expression with the products and
integer powers linearized.
tlin(ExprTrig)
Example:
tlin(sin(x)^3) gives
tcollect Returns a trigonometric expression linearized and with any
sine and cosine terms of the same angle collected together.
tcollect(Expr)
Example:
tcollect(sin(x)+cos(x)) returns
i
2
---
ix+
ix
---------------
ln
3
4
---
xsin
1
4
---
3 xsin
2 x
1
4
---


cos