Constructs the interpolating polynomial through a set of points.

Namespace: Extreme.Mathematics.Curves
Assembly:   Extreme.Numerics (in Extreme.Numerics)
Version: 2.1.7017.0

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
)
Visual C++
public:
static Polynomial^ GetInterpolatingPolynomial (
	array<double>^ xValues, 
	array<double>^ yValues
)

Parameters

xValues
System.Double[]
A Double array containing the xValues-coordinates of the interpolation points. The elements of this array must be distinct.
yValues
System.Double[]
A Double array containing the yValues-coordinates of the interpolation points.

Return Value

The interpolating Polynomial for the specified points.

Exceptions

ExceptionCondition
System.ArgumentNullExceptionxValues is nullNothingnullptr.

-or-

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