Special.GegenbauerCSequence(Int32, Int32, Double, Double, Vector<Double>) Method

Evaluates a sequence of Gegenbauer polynomials of increasing degree starting at the specified degree and returns the result in the specified vector.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Vector<double> GegenbauerCSequence(
	int startDegree,
	int length,
	double lambda,
	double x,
	Vector<double> result
)

Parameters

startDegree  Int32
An integer that specifies the first degree in the sequence.
length  Int32
The length of the sequence.
lambda  Double
The parameter of the Gegenbauer polynomials.
x  Double
A real number.
result  Vector<Double>
The vector that is to hold the result. May be null.

Return Value

Vector<Double>
The vector result, which contains length values of the Gegenbauer polynomial with parameter lambda and of increasing orders starting from startDegree evaluated at x.

Exceptions

ArgumentOutOfRangeException

startDegree is less than zero.

-or-

length is less than zero.

See Also