Skip to main content

eval_gegenbauer

Function eval_gegenbauer 

Source
pub fn eval_gegenbauer<N, Z: GegenbauerArg<N>>(n: N, alpha: f64, z: Z) -> Z
Expand description

Evaluate Gegenbauer polynomial $C_n^{(\alpha)}$ at a point.

Corresponds to scipy.special.eval_gegenbauer, and xsf::eval_gegenbauer.

§Definition

The Gegenbauer polynomials can be defined via the Gauss hypergeometric function $_2F_1$ as

$$ C_n^{(\alpha)}(z) = {n+2\alpha-1 \choose n}\, \hyp{2}{1}{-n,\enspace n+2\alpha}{{1 \over 2}+\alpha}{-{z-1 \over 2}} $$

When $n$ is an integer the result is a polynomial of degree $n$. See Abramowitz & Stegun 22.5.46 1 or DLMF 18.5.9 2 for details.

§See also

  • eval_jacobi: Evaluate Jacobi polynomials, $P_n^{(\alpha, \beta)}$
  • 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. ↩

  2. NIST Digital Library of Mathematical Functions, https://dlmf.nist.gov/18.5.E9 ↩