Special.GegenbauerCSequenceWithDerivative Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.1.5

Overload List

GegenbauerCSequenceWithDerivative(Double, Double, Span<Double>, Span<Double>) Evaluates a sequence of Gegenbauer polynomials of increasing degree and their first derivatives, returning the results in the specified spans.
GegenbauerCSequenceWithDerivative(Int32, Double, Double, Span<Double>, Span<Double>) Evaluates a sequence of Gegenbauer polynomials of increasing degree starting at the specified degree and their first derivatives, returning the results in the specified spans.

GegenbauerCSequenceWithDerivative(Double, Double, Span<Double>, Span<Double>)

Evaluates a sequence of Gegenbauer polynomials of increasing degree and their first derivatives, returning the results in the specified spans.
C#
public static void GegenbauerCSequenceWithDerivative(
	double alpha,
	double x,
	Span<double> values,
	Span<double> derivatives
)

Parameters

alpha  Double
The parameter of the Gegenbauer polynomials.
x  Double
A real number.
values  Span<Double>
The span that is to hold the polynomial values.
derivatives  Span<Double>
The span that is to hold the derivative values.

Exceptions

ArgumentException

values and derivatives must have the same length.

GegenbauerCSequenceWithDerivative(Int32, Double, Double, Span<Double>, Span<Double>)

Evaluates a sequence of Gegenbauer polynomials of increasing degree starting at the specified degree and their first derivatives, returning the results in the specified spans.
C#
public static void GegenbauerCSequenceWithDerivative(
	int startDegree,
	double alpha,
	double x,
	Span<double> values,
	Span<double> derivatives
)

Parameters

startDegree  Int32
An integer that specifies the first degree in the sequence.
alpha  Double
The parameter of the Gegenbauer polynomials.
x  Double
A real number.
values  Span<Double>
The span that is to hold the polynomial values.
derivatives  Span<Double>
The span that is to hold the derivative values.

Exceptions

ArgumentOutOfRangeException

startDegree is less than zero.

ArgumentException

values and derivatives must have the same length.

See Also