bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / special / _orthogonal / hermite
function
scipy.special._orthogonal:hermite
source: build-install/usr/lib/python3.14/site-packages/scipy/special/_orthogonal.py:1644
Signature
def hermite(n, monic = False)Summary
Physicist's Hermite polynomial.
Extended Summary
Defined by
is a polynomial of degree .
Parameters
n: intDegree of the polynomial.
monic: bool, optionalIf True, scale the leading coefficient to be 1. Default is False.
Returns
H: orthopoly1dPhysicist's Hermite polynomial.
Notes
The polynomials are orthogonal over with weight function .
Examples
from scipy import special import matplotlib.pyplot as plt import numpy as np✓
p_monic = special.hermite(3, monic=True) p_monic✓
poly1d([ 1. , 0. , -1.5, 0. ])
p_monic(1)
✗np.float64(-0.49999999999999983)
x = np.linspace(-3, 3, 400) y = p_monic(x)✓
plt.plot(x, y) plt.title("Monic Hermite polynomial of degree 3") plt.xlabel("x") plt.ylabel("H_3(x)")✗
Text(0, 0.5, 'H_3(x)')
plt.show()
✓
Aliases
scipy.special.hermite