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

Evaluates a sequence of Legendre 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> LegendrePSequence(
	int length,
	double x,
	Vector<double> result
)

Parameters

length  Int32
The length of the sequence.
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 Legendre polynomial of increasing orders starting from zero evaluated at x.

Exceptions

ArgumentOutOfRangeException

length is less than zero.

See Also