bundles / scipy 1.17.1 / scipy / special / _orthogonal / hermite
function
scipy.special._orthogonal:hermite
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 isFalse.
Returns
H: orthopoly1dHermite 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✓
p_monic(1)
✗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)")✗
plt.show()
✓
Aliases
-
scipy.special.hermite