bundles / numpy latest / numpy / polynomial / hermite / hermroots
function
numpy.polynomial.hermite:hermroots
source: build-install/usr/lib/python3.14/site-packages/numpy/polynomial/hermite.py :1485
Signature
def hermroots ( c ) Summary
Compute the roots of a Hermite series.
Extended Summary
Return the roots (a.k.a. "zeros") of the polynomial
Parameters
c: 1-D array_like1-D array of coefficients.
Returns
out: ndarrayArray of the roots of the series. If all the roots are real, then out is also real, otherwise it is complex.
Notes
The root estimates are obtained as the eigenvalues of the companion matrix, Roots far from the origin of the complex plane may have large errors due to the numerical instability of the series for such values. Roots with multiplicity greater than 1 will also show larger errors as the value of the series near such points is relatively insensitive to errors in the roots. Isolated roots near the origin can be improved by a few iterations of Newton's method.
The Hermite series basis polynomials aren't powers of x so the results of this function may seem unintuitive.
Examples
from numpy.polynomial.hermite import hermroots, hermfromroots coef = hermfromroots([-1, 0, 1])✓
coef hermroots(coef)✗
See also
Aliases
-
numpy.polynomial.Hermite._roots -
numpy.polynomial.hermite.hermroots