pub fn jacobi(n: u32, alpha: f64, beta: f64, x: f64) -> f64
The Jacobi polynomial P_n^{(α,β)}(x) (α, β > −1 for orthogonality). Legendre is α = β = 0, and Gegenbauer and Chebyshev polynomials are scaled special cases.
P_n^{(α,β)}(x)
α, β > −1
α = β = 0