# function_expand 函数

把带平移自变量的特殊函数改写为更简单的函数。

## 怎么写

### function_expand(expr)

**expr**

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

## 示例

- $\displaystyle \Gamma(x+1) = x \Gamma(x)$

  `function_expand(gamma(x + 1))`

  在求解器中，`function_expand(gamma(x + 1))` 的结果是 `x*gamma(x)`。

  [在求解器中打开](https://zh.hilberon.com/?q=function_expand%28gamma%28x%20%2B%201%29%29)

## 示例中用到的函数

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

  伽马函数：当 n 为整数时，gamma(n) 等于 (n - 1)!。

## 相关函数

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

  把乘积和乘方展开成和式。
- [complex_expand](https://zh.hilberon.com/library/complex_expand)

  在假定变量为实数的前提下展开表达式。
- [power_expand](https://zh.hilberon.com/library/power_expand)

  展开乘积与幂的幂和对数。
- [groebner_basis](https://zh.hilberon.com/library/groebner_basis)

  一组多项式的 Groebner 基。
- [full_simplify](https://zh.hilberon.com/library/full_simplify)

  在给定假设下，比 simplify 更努力地寻找更简单的形式。
- [minimal_polynomial](https://zh.hilberon.com/library/minimal_polynomial)

  代数数在有理数域上的极小多项式。

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