trigrat SciMax Toolbox trigsign

SciMax Toolbox >> trigreduce

trigreduce

Maxima Function

Calling Sequence

trigreduce (expr, x)
trigreduce(expr)

Description

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.

See also .

(%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.

(%i1) declare(j, integer, e, even, o, odd)$
(%i2) sin(x + (e + 1/2)*%pi);
(%o2)                        cos(x)
(%i3) sin(x + (o + 1/2)*%pi);
(%o3)                       - cos(x)
trigrat SciMax Toolbox trigsign