This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

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 : int

Degree of the polynomial.

monic : bool, optional

If True, scale the leading coefficient to be 1. Default is False.

Returns

H : orthopoly1d

Physicist'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()
✓
fig-af0529d2ada77300.png

Aliases

  • scipy.special.hermite