pub fn roots_jacobi(n: usize, alpha: f64, beta: f64) -> (Vec<f64>, Vec<f64>)Expand description
Gauss-Jacobi quadrature
Corresponds to scipy.special.roots_jacobi.
The nodes are the roots of the Jacobi polynomial $P_n^{(\alpha,\beta)}$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $(1 - x)^\alpha (1 + x)^\beta$ on $[-1, 1]$ (A&S 22.2.1).
§Panics
- if
nis zero - if $\alpha \le -1$ or $\beta \le -1$
§See also
eval_jacobi: Evaluate Jacobi polynomials, $P_n^{(\alpha,\beta)}$