Skip to content

hermite

Hermite polynomial H_n(x).

P = hermite(x, n)

Returns the physicist’s Hermite polynomial of degree n evaluated at x. Used in quantum-harmonic-oscillator wavefunctions and probabilistic Gauss-Hermite quadrature.

hermite(1.0, 3) % H_3(1) = 8 - 12 = -4
  • legendre — Associated Legendre functions P_n^m(x).