pub fn roots_sh_jacobi(n: usize, alpha: f64, beta: f64) -> (Vec<f64>, Vec<f64>)Expand description
Gauss-Jacobi (shifted) quadrature
Has no corresponding function in scipy.special, see roots_gengegenbauer instead.
The nodes are the roots of the shifted Jacobi polynomial $P_n^{*(\alpha,\beta)}$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $(1 - x)^\alpha x^\beta$ on $[0, 1]$.
§Panics
- if
nis zero - if $\alpha \le -1$ or $\beta \le -1$
§See also
eval_sh_jacobi: Evaluate shifted Jacobi polynomials, $P_n^{*(\alpha,\beta)}$roots_jacobi: Gauss-Jacobi quadrature