OrthogonalPolynomialsChebyshevU Method

Computes the value of a Cebyshev polynomial of the second kind.

Definition

Namespace: Meta.Numerics.Functions
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public static double ChebyshevU(
	int n,
	double x
)

Parameters

n  Int32
The order, which must be non-negative.
x  Double
The argument, which must lie in the closed interval between -1 and +1.

Return Value

Double
The value of Un(x).

Remarks

Chebyshev polynomials of the second kind are orthogonal on the interval [-1,1] with the weight (1-x2)1/2.

Values returned are fully accurate (14-16 decimal digits) over the full range of argument for orders up to thousands. For orders up to a million, ~11 decimal digits remain accurate.

Exceptions

ArgumentOutOfRangeExceptionn is negative, or x lies outside [-1,+1].

See Also