# exp_to_trig 函数

把复指数改写为三角函数。

## 怎么写

### exp_to_trig(expr)

**expr**

任意表达式：一个数、一个公式、一个列表或一个矩阵。接受一个表达式。

## 示例

- $\displaystyle e^{i x} = i \sin(x)+\cos(x)$

  `exp_to_trig(exp(i*x))`

  在求解器中，`exp_to_trig(exp(i*x))` 的结果是 `i*sin(x) + cos(x)`。

  [在求解器中打开](https://zh.hilberon.com/?q=exp_to_trig%28exp%28i*x%29%29)

## 示例中用到的函数

- [exp](https://zh.hilberon.com/library/exp)

  指数函数；exp(x) 就是 e^x 这个幂。

## 相关函数

- [trig_to_exp](https://zh.hilberon.com/library/trig_to_exp)

  把三角函数改写成复指数。
- [trig_expand](https://zh.hilberon.com/library/trig_expand)

  展开角的和与倍数的三角函数。
- [trig_reduce](https://zh.hilberon.com/library/trig_reduce)

  把三角函数的幂与乘积改写成多倍角的函数。
- [sec](https://zh.hilberon.com/library/sec)

  角度的正割，角度以弧度计。
- [csch](https://zh.hilberon.com/library/csch)

  双曲余割。
- [sech](https://zh.hilberon.com/library/sech)

  双曲正割。

---
Source: https://zh.hilberon.com/library/exp_to_trig
