scipy 1.8.0 Pypi GitHub Homepage
Other Docs
NotesParametersReturnsBackRef
hermite(n, monic=False)

Defined by

$$H_n(x) = (-1)^ne^{x^2}\frac{d^n}{dx^n}e^{-x^2};$$

$H_n$ is a polynomial of degree $n$ .

Notes

The polynomials $H_n$ are orthogonal over $(-\infty, \infty)$ with weight function $e^{-x^2}$ .

Parameters

n : int

Degree of the polynomial.

monic : bool, optional

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

Returns

H : orthopoly1d

Hermite polynomial.

Physicist's Hermite polynomial.

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)
-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)")
... plt.show()
See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

scipy.special._orthogonal.hermite

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


GitHub : /scipy/special/_orthogonal.py#1245
type: <class 'function'>
Commit: