Skip to main content

roots_genlaguerre

Function roots_genlaguerre 

Source
pub fn roots_genlaguerre(n: usize, alpha: f64) -> (Vec<f64>, Vec<f64>)
Expand description

Gauss-generalized Laguerre quadrature

Corresponds to scipy.special.roots_genlaguerre.

The nodes are the roots of the generalized Laguerre polynomial $L_n^{(\alpha)}$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $x^\alpha e^{-x}$ on $[0, \infty)$ (A&S 22.3.9).

§Panics

  • if n is zero
  • if $\alpha \le -1$

§See also