# trig_expand 函数

展开角的和与倍数的三角函数。

## 怎么写

### trig_expand(expr)

**expr**

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

## 示例

- $\displaystyle \sin(2 x) = 2 \sin(x) \cos(x)$

  `trig_expand(sin(2x))`

  在求解器中，`trig_expand(sin(2x))` 的结果是 `2sin(x)*cos(x)`。

  [在求解器中打开](https://zh.hilberon.com/?q=trig_expand%28sin%282x%29%29)

## 示例中用到的函数

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

  角度的正弦，角度以弧度计。

## 相关函数

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

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

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

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

  双曲正切。
- [tan](https://zh.hilberon.com/library/tan)

  以弧度表示的角的正切。
- [arccos](https://zh.hilberon.com/library/arccos)

  反余弦：余弦为某数的角，以弧度表示。

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