Special.Gegenbauer CSeries Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Gegenbauer | Evaluates a series of Gegenbauer polynomials. |
Gegenbauer | Evaluates a series of Gegenbauer polynomials up to the specified degree. |
GegenbauerCSeries(Vector<Double>, Double, Double)
Evaluates a series of Gegenbauer polynomials.
public static double GegenbauerCSeries(
Vector<double> coefficients,
double lambda,
double x
)
Parameters
- coefficients Vector<Double>
- A vector containing the coefficients.
- lambda Double
- The parameter of the Gegenbauer polynomials.
- x Double
- The value for which to evaluate the series.
Return Value
DoubleThe sum of the Gegenbauer polynomials at x multiplied by the corresponding element of coefficients.
Exceptions
Argument | coefficients is null. |
GegenbauerCSeries(Vector<Double>, Double, Double, Int32)
Evaluates a series of Gegenbauer polynomials up to the specified degree.
public static double GegenbauerCSeries(
Vector<double> coefficients,
double lambda,
double x,
int maxDegree
)
Parameters
- coefficients Vector<Double>
- A vector containing the coefficients.
- lambda Double
- The parameter of the Gegenbauer polynomials.
- x Double
- The value for which to evaluate the series.
- maxDegree Int32
- The degree of the highest order Chebyshev polynomial to include in the series.
Return Value
DoubleThe sum of the Gegenbauer polynomials up to degree maxDegree evaluated at x and multiplied by the corresponding element of coefficients.
Remarks
If maxDegree is less than zero, then zero is returned.
Exceptions
Argument | coefficients is null. |