MathTop

legendre_p 函数

返回勒让德多项式 P_n(x)。

语法

  • LegendreP(n, x)
  • legendre_p(n, x)

参数与选项

n非负整数多项式次数。
x多项式变量或取值。

示例

  1. 三次多项式LegendreP(3, x)返回 5*x^3/2 - 3*x/2。