Maxima Function
trigreduce (expr, x)
trigreduce(expr)
Combines products and powers of trigonometric and hyperbolic sin's and cos's of x into those of multiples of x. It also tries to eliminate these functions when they occur in denominators. If x is omitted then all variables in expr are used.
(%i1) trigreduce(-sin(x)^2+3*cos(x)^2+x); cos(2 x) cos(2 x) 1 1 (%o1) -------- + 3 (-------- + -) + x - - 2 2 2 2
The trigonometric simplification routines will use declared information in some simple cases. Declarations about variables are used as follows, e.g.