Student[NumericalAnalysis]
Function
return the exact function from an interpolation structure
Calling Sequence
Parameters
Description
Examples
Function(p)
p
-
a POLYINTERP structure
The Function command returns the exact function from a POLYINTERP structure.
If the Function command is used on a POLYINTERP structure whose exact function was not originally specified, an exception will be raised.
The POLYINTERP structure is created using the PolynomialInterpolation command or the CubicSpline command.
with⁡StudentNumericalAnalysis:
xy≔0,4.0,0.5,0,1.0,−2.0,1.5,0,2.0,1.0,2.5,0,3.0,−0.5
Note that the function option allows you to specify the exact function, which is then saved in the generated POLYINTERP structure.
p1≔PolynomialInterpolation⁡xy,function=22−x⁢cos⁡π⁢x,method=lagrange,extrapolate=0.25,0.75,1.25,errorboundvar=ξ:
The Function command allows you to retrieve the exact function that was stored in the POLYINTERP structure.
Function⁡p1
22−x⁢cos⁡π⁢x
plot⁡Function⁡p1,x=0..3
See Also
Student[NumericalAnalysis][ApproximateValue]
Student[NumericalAnalysis][ComputationOverview]
Student[NumericalAnalysis][CubicSpline]
Student[NumericalAnalysis][DataPoints]
Student[NumericalAnalysis][ExactValue]
Student[NumericalAnalysis][InterpolantRemainderTerm]
Student[NumericalAnalysis][PolynomialInterpolation]
Student[NumericalAnalysis][RemainderTerm]
Download Help Document