pub fn roots_hermite_h(n: usize) -> (Vec<f64>, Vec<f64>)Expand description
Gauss-Hermite (physicist’s) quadrature
Corresponds to scipy.special.roots_hermite.
The nodes are the roots of the Hermite polynomial $H_n$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $e^{-x^2}$ on $(-\infty, \infty)$ (A&S 22.2.14). For $n > 150$, they are computed by the asymptotic method of Townsend, Trogdon, and Olver 1.
§Panics
- if
nis zero
§See also
eval_hermite_h: Evaluate physicist’s Hermite polynomials, $H_n$
A. Townsend, T. Trogdon, and S. Olver, “Fast computation of Gauss quadrature nodes and weights on the whole real line”, IMA J. Numer. Anal. 36 (2016), https://arxiv.org/abs/1410.5286 ↩