Evaluates a series of Gegenbauer polynomials up to the specified degree.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static double GegenbauerCSeries(
Vector<double> coefficients,
double lambda,
double x,
int maxDegree
)
Public Shared Function GegenbauerCSeries (
coefficients As Vector(Of Double),
lambda As Double,
x As Double,
maxDegree As Integer
) As Double
public:
static double GegenbauerCSeries(
Vector<double>^ coefficients,
double lambda,
double x,
int maxDegree
)
static member GegenbauerCSeries :
coefficients : Vector<float> *
lambda : float *
x : float *
maxDegree : int -> float
Parameters
- coefficients
- Type: Extreme.MathematicsVectorDouble
A vector containing the coefficients. - lambda
- Type: SystemDouble
The parameter of the Gegenbauer polynomials. - x
- Type: SystemDouble
The value for which to evaluate the series. - maxDegree
- Type: SystemInt32
The degree of the highest order Chebyshev polynomial to include in the series.
Return Value
Type:
DoubleThe sum of the Gegenbauer polynomials up to degree
maxDegree evaluated at
x
and multiplied by the corresponding element of
coefficients.
If maxDegree is less than zero, then zero is returned.
Reference