{ } Raw JSON

bundles / scipy latest / scipy / special / _orthogonal / hermite

function

scipy.special._orthogonal:hermite

source: /scipy/special/_orthogonal.py :1288

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

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
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()
fig-56dffa611bbe84d8.png

Aliases

  • scipy.special.hermite