pub fn roots_chebyshev_c(n: usize) -> (Vec<f64>, Vec<f64>)Expand description
Gauss-Chebyshev (first kind) quadrature on $[-2, 2]$
Corresponds to scipy.special.roots_chebyc.
The nodes are the roots of $C_n(x) = 2 T_n(x / 2)$, and the rule is exact for polynomials of degree $2n - 1$ with the weight function $1 / \sqrt{1 - (x/2)^2}$ on $[-2, 2]$ (A&S 22.2.6).
§Panics
- if
nis zero
§See also
eval_chebyshev_c: Evaluate $C_n$