Skip to content

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

Léela en español

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

日本語で読む

本页也有简体中文版本。

阅读简体中文版本

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

  • cos⁡(x)=eix+e−ix2\displaystyle \cos(x) = \frac{e^{i x}+e^{-i x}}{2}
    trig_to_exp(cos(x))

    In the solver, trig_to_exp(cos(x)) gives (e^(i*x) + e^(-i*x))/2.

    Open in the solver

Functions its examples use

  • cos

    Cosine of an angle in radians.

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