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