Skip to main content

roots_chebyshev_t

Function roots_chebyshev_t 

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

Gauss-Chebyshev (first kind) quadrature

Corresponds to scipy.special.roots_chebyt.

The nodes are the roots of the Chebyshev polynomial $T_n$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $1 / \sqrt{1 - x^2}$ on $[-1, 1]$ (A&S 22.2.4).

§Panics

  • if n is zero

§See also