Student[NumericalAnalysis]
ApproximateValue
return specific approximate value(s) of the interpolating polynomial
Calling Sequence
Parameters
Description
Examples
ApproximateValue(p)
ApproximateValue(p, pts)
p
-
a POLYINTERP structure
pts
(optional) numeric, list(numeric); a point or list of points at which the value of the approximating polynomial is to be computed
The ApproximateValue command computes the value(s) of the approximated polynomial at specified point(s) pts or at the extrapolated point(s) from the POLYINTERP structure, depending on whether pts is specified or not.
The approximate values are returned in a list of the form [[pointi, approxi], [...], ...], i=1..number of points.
The POLYINTERP structure is created using the PolynomialInterpolation command or the CubicSpline command.
with⁡StudentNumericalAnalysis:
xy≔1.0,0.7651977,1.3,0.6200860,1.6,0.4554022,1.9,0.2818186
p1≔PolynomialInterpolation⁡xy,method=neville,extrapolate=1.5:
ApproximateValue⁡p1
1.5,0.5118126939
ApproximateValue⁡p1,1.7,1.8
1.7,0.3980028398,1.8,0.3400098828
xyy≔0,1,12,1,1,1110,32,34,2,78,52,910,3,1110,72,1
p2≔CubicSpline⁡xyy,independentvar=x:
ApproximateValue⁡p2,1.3
1.3,0.8776545517
See Also
Student[NumericalAnalysis][AddPoint]
Student[NumericalAnalysis][ApproximateExactUpperBound]
Student[NumericalAnalysis][BasisFunctions]
Student[NumericalAnalysis][ComputationOverview]
Student[NumericalAnalysis][CubicSpline]
Student[NumericalAnalysis][Draw]
Student[NumericalAnalysis][InterpolantRemainderTerm]
Student[NumericalAnalysis][PolynomialInterpolation]
Download Help Document