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