Skip to main content

eval_chebyshev_u

Function eval_chebyshev_u 

Source
pub fn eval_chebyshev_u<N, Z: ChebyshevArg<N>>(n: N, z: Z) -> Z
Expand description

Evaluate Chebyshev polynomial of the second kind $U_n$ at a point.

This is a pure rust implementation equivalent to scipy.special.eval_chebyu.

§Definition

The Chebyshev polynomials of the second kind can be defined via Gauss’ hypergeometric function, $_2F_1$, as

$$ U_n(z) = (n+1)\ \hyp{2}{1}{-n,\enspace 2+n}{3 \over 2}{-{z-1 \over 2}} $$

When $n$ is an integer the result is an orthogonal polynomial of degree $\abs n$. See Abramowitz & Stegun (1972) eq. 22.5.48 1 for details.

§See also

  • eval_chebyshev_t: Evaluate Chebyshev polynomials of the first kind, $T_n$
  • hyp2f1: Gauss’ hypergeometric function, $_2F_1$

  1. Milton Abramowitz and Irene A. Stegun, eds. Handbook of Mathematical Functions with Formulas, Graphs, and Mathematical Tables. New York: Dover, 1972. ↩