Skip to main content

roots_sh_jacobi

Function roots_sh_jacobi 

Source
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 n is zero
  • if $\alpha \le -1$ or $\beta \le -1$

§See also