exp_to_trig function
Rewrite complex exponentials as trigonometric functions.
How to write it
exp_to_trig(expr)
- expr
- Any expression: a number, a formula, a list or a matrix. Takes an expression.
Examples
exp_to_trig(exp(i*x))In the solver,
Open in the solverexp_to_trig(exp(i*x))givesi*sin(x) + cos(x).
Functions its examples use
- exp
Exponential function; exp(x) is the power e^x.
Related functions
- trig_to_exp
Rewrite trigonometric functions as complex exponentials.
- trig_expand
Expand trigonometric functions of sums and multiples of angles.
- trig_reduce
Rewrite powers and products of trigonometric functions as functions of multiple angles.
- sec
Secant of an angle in radians.
- csch
Hyperbolic cosecant.
- sech
Hyperbolic secant.