ChebyshevSeries<T>.GetInterpolatingPolynomial Method

Calculates the Chebyshev interpolating polynomial of the specified degree over the given interval for the specified function.

Definition

Namespace: Numerics.NET.Curves.Generic
Assembly: Numerics.NET.Generic (in Numerics.NET.Generic.dll) Version: 9.0.3
C#
public static ChebyshevSeries<T> GetInterpolatingPolynomial(
	Func<T, T> function,
	T lowerBound,
	T upperBound,
	int degree
)

Parameters

function  Func<T, T>
A delegate that represents a function of one variable that specifies the function to interpolate.
lowerBound  T
The lower bound of the interval.
upperBound  T
The upper bound of the interval.
degree  Int32
The desired degree of the interpolating polynomial.

Return Value

ChebyshevSeries<T>
A ChebyshevSeries object.

Remarks

The interpolating polynomial through the Chebyshev

Exceptions

ArgumentExceptionThe interval has zero length.
ArgumentNullExceptionfunction is null.
ArgumentOutOfRangeExceptiondegree is less than zero.

See Also