Click or drag to resize

Polynomial(DoubleVector, OneVariableFunction) Constructor

Construct a polynomial that interpolates a function. If the number of interpolation points is n, then the constructed polynomial, p(x), will be have degree n - 1 and agree with the passed function at the passed interpolation points. Specifically, p will satisfy p(interpolationPoints[i]) = function(interpolationPoints[i]) for each i = 0, 1,...,n.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public Polynomial(
	DoubleVector xCoord,
	OneVariableFunction function
)

Parameters

xCoord  DoubleVector
The x-coordinates of points at which to interpolate the function.
function  OneVariableFunction
A delegate representing the function to interpolate.
Exceptions
ExceptionCondition
InvalidArgumentException Thrown if passed an empty vector of x-values.
See Also