| 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.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public Polynomial(
DoubleVector xCoord,
OneVariableFunction function
)
Public Sub New (
xCoord As DoubleVector,
function As OneVariableFunction
)
public:
Polynomial(
DoubleVector^ xCoord,
OneVariableFunction^ function
)
new :
xCoord : DoubleVector *
function : OneVariableFunction -> Polynomial
Parameters
- xCoord DoubleVector
- The x-coordinates of points at which to interpolate the function.
- function OneVariableFunction
- A delegate representing the function to interpolate.
Exceptions See Also