public static double GegenbauerC(
int n,
double alpha,
double x
)
Public Shared Function GegenbauerC (
n As Integer,
alpha As Double,
x As Double
) As Double
public:
static double GegenbauerC(
int n,
double alpha,
double x
)
static member GegenbauerC :
n : int *
alpha : float *
x : float -> float
The Gegenbauer polynomials, also called the ultraspherical polynomials, are orthogonal on the interval [-1,+1] with the weight (1 - x^2)^(alpha - 1/2).
The Legendre (LegendreP(Int32, Double)) and Chebyshev (ChebyshevT(Int32, Double) polynomials are thus special cases of the Gegenbauer polynomials.
ArgumentOutOfRangeException | n is negative, or alpha is negative, or x lies outside [-1, +1]. |