bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / special / _orthogonal / hermitenorm
function
scipy.special._orthogonal:hermitenorm
source: build-install/usr/lib/python3.14/site-packages/scipy/special/_orthogonal.py:1857
Signature
def hermitenorm(n, monic = False)Summary
Probabilist'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
He: orthopoly1dProbabilist's Hermite polynomial.
Notes
The polynomials are orthogonal over with weight function .
Examples
import numpy as np import matplotlib.pyplot as plt from scipy.special import hermitenorm✓
p_monic = hermitenorm(3) p_monic✓
poly1d([ 1., 0., -3., 0.])Evaluate the probabilist's Hermite polynomial of degree 3 at x = 1:
p_monic(1)
✓np.float64(-2.0)Plot probabilist's Hermite polynomials of degree 0 to 4:
x = np.linspace(-3, 3, 100) fig, ax = plt.subplots()✓
for i in range(5): ax.plot(x, hermitenorm(i)(x), label=f"n={i}") plt.title(f"Probabilist's Hermite polynomials $He_n$") plt.xlabel("x") plt.ylabel(rf"$He_n(x)$") plt.legend(loc="best")✗
<matplotlib.legend.Legend object at 0x7f3f684f63c0>
plt.show()
✓
Aliases
scipy.special.hermitenorm