# 勒让德多项式（Legendre polynomial，legendre_p）

Legendre 多项式。

## 怎么写

### legendre_p(n, x)

**n**

次数。接受一个整数。

**x**

变量。接受一个表达式。

## 示例

- $\displaystyle \mathrm{P}_{2}(x) = \frac{3 x^{2}}{2}-\frac{1}{2}$

  `legendre_p(2, x)`

  在求解器中，`legendre_p(2, x)` 的结果是 `3x^2/2 - 1/2`。

  [在求解器中打开](https://zh.hilberon.com/?q=legendre_p%282%2C%20x%29)

## 相关函数

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

  第二类 Legendre 函数。
- [lambert_w](https://zh.hilberon.com/library/lambert_w)

  Lambert W 函数：w exp(w) 的反函数，取主分支。
- [lerch_phi](https://zh.hilberon.com/library/lerch_phi)

  Lerch 超越函数：z^k / (k + a)^s 对 k 从 0 起的和。
- [laguerre_l](https://zh.hilberon.com/library/laguerre_l)

  Laguerre 多项式。
- [log_gamma](https://zh.hilberon.com/library/log_gamma)

  伽马函数的对数。
- [kronecker_delta](https://zh.hilberon.com/library/kronecker_delta)

  Kronecker delta：当各参数相等时为 1，否则为 0。

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