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

Namespace: Extreme.Mathematics.Curves
Assembly: Extreme.Numerics (Extreme.Numerics)

Syntax

Visual Basic (Declaration)
Public Shared Function GetInterpolatingPolynomial ( _
	function As RealFunction, _
	lowerBound As Double, _
	upperBound As Double, _
	degree As Integer _
) As ChebyshevSeries
C#
public static ChebyshevSeries GetInterpolatingPolynomial (
	RealFunction function,
	double lowerBound,
	double upperBound,
	int degree
)
C++
public:
static ChebyshevSeries^ GetInterpolatingPolynomial (
	RealFunction^ function, 
	double lowerBound, 
	double upperBound, 
	int degree
)

Parameters

function (Extreme.Mathematics.RealFunction)
A RealFunction delegate that specifies the function to interpolate.
lowerBound (System.Double)
The lower bound of the interval.
upperBound (System.Double)
The upper bound of the interval.
degree (System.Int32)
The desired degree of the interpolating polynomial.

Return Value

A ChebyshevSeries object.

Remarks

The interpolating polynomial through the Chebyshev

Exceptions

ExceptionCondition
ArgumentExceptionThe interval has zero length.
ArgumentNullExceptionfunction is nullNothingnullptr.
ArgumentOutOfRangeExceptiondegree is less than zero.