legendre
Associated Legendre functions P_n^m(x).
Syntax
Section titled “Syntax”P = legendre(n, x)P = legendre(n, x, normalization)Description
Section titled “Description”Returns the associated Legendre functions of degree n at x. Result is a column for each m from 0 to n. The normalization argument selects between 'unnorm' (default), 'sch' (Schmidt seminormalized), or 'norm' (fully normalized).
Example
Section titled “Example”legendre(2, 0.5) % [P_2^0(0.5); P_2^1(0.5); P_2^2(0.5)]See also
Section titled “See also”hermite— Hermite polynomial H_n(x).