|
Calling Sequence
|
|
PolynomialInterpolation(xydata, v, opts)
PolynomialInterpolation(xdata, ydata, v, opts)
|
|
Parameters
|
|
xydata
|
-
|
list, Array, DataFrame, or Matrix of the form [[x1,y1], [x2,y2], ..., [xn,yn]]; data points
|
xdata
|
-
|
list, Array, DataSeries, or Vector of the form [x1, x2, ..., xn]; independent values
|
ydata
|
-
|
list, Array, DataSeries, or Vector of the form [y1, y2, ..., yn]; dependent values
|
v
|
-
|
name or numeric value
|
opts
|
-
|
(optional) equation of the form form=option where option is one of Lagrange, monomial, Newton, or power; specify keyword describing form of output
|
|
|
|
|
Description
|
|
•
|
The PolynomialInterpolation routine returns the polynomial of degree less than or equal to in variable v that interpolates the points . If v is a numerical value, the value of the polynomial at this point is returned.
|
•
|
You can call the PolynomialInterpolation routine in two ways.
|
|
The first, PolynomialInterpolation(xydata, v, opts), accepts a list, Array, or Matrix, , of data points.
|
|
The second, PolynomialInterpolation(xdata, ydata, v, opts), accepts two lists, two Arrays, or two Vectors. In this form, the first set of data contains the independent values, , and the second set contains the dependent values, . Each element must be of type algebraic and all of the independent values must be distinct.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
>
|
|
| (3) |
|
|
|