ChebyshevSeries.GetInterpolatingPolynomial Method

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

Definition

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static ChebyshevSeries GetInterpolatingPolynomial(
	Func<double, double> function,
	double lowerBound,
	double upperBound,
	int degree
)

Parameters

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

Return Value

ChebyshevSeries
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