Constructs the interpolating polynomial through a set of points.

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

Syntax

Visual Basic (Declaration)
Public Shared Function GetInterpolatingPolynomial ( _
	xValues As Double(), _
	yValues As Double() _
) As Polynomial
C#
public static Polynomial GetInterpolatingPolynomial (
	double[] xValues,
	double[] yValues
)
C++
public:
static Polynomial^ GetInterpolatingPolynomial (
	array<double>^ xValues, 
	array<double>^ yValues
)

Parameters

xValues ()
A Double array containing the xValues-coordinates of the interpolation points. The elements of this array must be distinct.
yValues ()
A Double array containing the yValues-coordinates of the interpolation points.

Return Value

The interpolating Polynomial for the specified points.

Exceptions

ExceptionCondition
ArgumentNullExceptionxValues is nullNothingnullptr.

-or-

yValues is nullNothingnullptr.
DimensionMismatchException The arrays xValues and yValues have different lengths.