pub fn roots_laguerre(n: usize) -> (Vec<f64>, Vec<f64>)Expand description
Gauss-Laguerre quadrature
Corresponds to scipy.special.roots_laguerre.
The nodes are the roots of the Laguerre polynomial $L_n$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $e^{-x}$ on $[0, \infty)$ (A&S 22.2.13).
§Panics
- if
nis zero
§See also
eval_laguerre: Evaluate Laguerre polynomials, $L_n$