Student[NumericalAnalysis][AddPoint] - return an interpolated polynomial structure with a newly added point
|
Calling Sequence
|
|
AddPoint(p, pts)
AddPoint(p, pts, bcs)
|
|
Parameters
|
|
p
|
-
|
a POLYINTERP structure
|
pts
|
-
|
numeric, list(numeric, numeric), list(numeric, numeric,numeric); the new data point (node) to be added
|
bcs
|
-
|
list(numeric, numeric); new boundary conditions for an interpolating polynomial created using the cubic spline method
|
|
|
|
|
Description
|
|
•
|
The AddPoint command takes the point(s) to be added and recomputes the interpolated polynomial from p with the new point(s) and returns the adjusted POLYINTERP structure.
|
•
|
This command is convenient because it prevents you from having to reenter all previous options and data with the new point into the PolynomialInterpolation command or the CubicSpline command to create a new POLYINTERP structure.
|
•
|
If the POLYINTERP structure was created using the CubicSpline command and the boundary conditions are not natural, then new boundary conditions bcs at the end points must be specified.
|
|
|
Notes
|
|
•
|
This procedure operates numerically; that is, inputs that are not numeric are first evaluated to floating-point numbers before computations proceed.
|
|
|
Examples
|
|
>
|
|
>
|
|
| (1) |
>
|
|
>
|
|
| (2) |
Add another node.
>
|
|
The Neville Table now has another row.
>
|
|
| (3) |
|
|
Download Help Document
Was this information helpful?