Skip to main content

roots_sh_chebyshev_u

Function roots_sh_chebyshev_u 

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

Gauss-Chebyshev (second kind, shifted) quadrature

Corresponds to scipy.special.roots_sh_chebyu.

The nodes are the roots of $U_n^*(x) = U_n(2x - 1)$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $\sqrt{x - x^2}$ on $[0, 1]$ (A&S 22.2.9).

§Panics

  • if n is zero

§See also