Skip to main content

Module orthogonal_polynomials

Module orthogonal_polynomials 

Source
Expand description

Classical orthogonal polynomials, evaluated by their stable three-term recurrences.

FamilyWeightIntervalNormalisation
Legendre P_n1[−1, 1]P_n(1) = 1
Chebyshev T_n, U_n(1−x²)^{∓½}[−1, 1]T_n(cos t) = cos nt, U_n(cos t) = sin((n+1)t)/sin t
Jacobi P_n^{(α,β)}(1−x)^α (1+x)^β[−1, 1]P_n^{(α,β)}(1) = C(n+α, n)
Hermite H_n (physicists’)e^{−x²}ℝleading coefficient 2ⁿ
Hermite He_n (probabilists’)e^{−x²/2}ℝmonic
Laguerre L_n^{(α)}x^α e^{−x}[0, ∞)L_n^{(α)}(0) = C(n+α, n)

See the book entry Orthogonal polynomials and spherical harmonics.

Functions§

chebyshev_t
The Chebyshev polynomial of the first kind T_n(x).
chebyshev_u
The Chebyshev polynomial of the second kind U_n(x).
hermite
The physicists’ Hermite polynomial H_n(x).
hermite_he
The probabilists’ Hermite polynomial He_n(x) = 2^{−n/2} H_n(x/√2).
jacobi
The Jacobi polynomial P_n^{(α,β)}(x) (α, β > −1 for orthogonality). Legendre is α = β = 0, and Gegenbauer and Chebyshev polynomials are scaled special cases.
laguerre
The generalized Laguerre polynomial L_n^{(α)}(x) (α > −1 for orthogonality; α = 0 gives the ordinary Laguerre polynomial).
legendre
The Legendre polynomial P_n(x).
legendre_with_derivative
(P_n(x), P_n'(x)), the derivative from (x² − 1) P_n' = n (x P_n − P_{n−1}) (with the limit P_n'(±1) = (±1)^{n+1} n(n+1)/2 at the endpoints). Used for Gauss-Legendre nodes.