Skip to content

legendre

Associated Legendre functions P_n^m(x).

P = legendre(n, x)
P = legendre(n, x, normalization)

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).

legendre(2, 0.5) % [P_2^0(0.5); P_2^1(0.5); P_2^2(0.5)]
  • hermite — Hermite polynomial H_n(x).