trig_reduce function
Rewrite powers and products of trigonometric functions as functions of multiple angles.
How to write it
trig_reduce(expr)
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
Examples
trig_reduce(sin(x)^2)In the solver,
Open in the solvertrig_reduce(sin(x)^2)gives1/2 - cos(2x)/2.
Functions its examples use
- sin
Sine of an angle in radians.
Related functions
- trig_to_exp
Rewrite trigonometric functions as complex exponentials.
- trig_expand
Expand trigonometric functions of sums and multiples of angles.
- exp_to_trig
Rewrite complex exponentials as trigonometric functions.
- arccos
Inverse cosine: the angle in radians whose cosine is a number.
- tanh
Hyperbolic tangent.
- arccosh
Inverse hyperbolic cosine.