Skip to content

Esta página también está en español.

Léela en español

このページは日本語でも読めます。

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • eix=isin⁡(x)+cos⁡(x)\displaystyle e^{i x} = i \sin(x)+\cos(x)
    exp_to_trig(exp(i*x))

    In the solver, exp_to_trig(exp(i*x)) gives i*sin(x) + cos(x).

    Open in the solver

Functions its examples use

  • exp

    Exponential function; exp(x) is the power e^x.

  • 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.