return the interpolating polynomial and remainder term from an interpolation structure
a POLYINTERP structure
(optional) equations of the form keyword=value where keyword is one of errorboundvar, independentvar, showapproximatepoly, showremainder; options for returning the interpolant and remainder term
errorboundvar = name
The name to assign to the independent variable in the remainder term. By default, the errorboundvar given when the POLYINTERP structure was created is used.
independentvar = name
The name to assign to the independent variable in the approximated polynomial. By default, the independentvar given when the POLYINTERP structure was created is used.
showapproximatepoly = true or false
Whether to return the approximated polynomial. By default this is set to true.
showremainder = true or false
Whether to return the remainder term. By default, this is set to true.
The InterpolantRemainderTerm command returns the approximate polynomial and remainder term from a POLYINTERP structure.
The interpolant and remainder term are returned in an expression sequence of the form Pn, Rn, where Pn is the interpolant and Rn is the remainder term.
The POLYINTERP structure is created using the PolynomialInterpolation command or the CubicSpline command.
If the POLYINTERP structure p was created using the CubicSpline command then the InterpolantRemainderTerm command can only return the approximate polynomial and therefore showremainder must be set to false.
In order for the remainder term to exist, the POLYINTERP structure p must have an associated exact function that has been given.
The remainder term is also called an error term.
The interpolant is also called the approximating polynomial or interpolating polynomial.
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
p1 ≔ PolynomialInterpolation⁡xy,function=22−x⁢cos⁡π⁢x,method=lagrange,extrapolate=0.25,0.75,1.25,errorboundvar='ξ':
0.3555555556⁢x−0.5⁢x−1.0⁢x−1.5⁢x−2.0⁢x−2.5⁢x−3.0−2.666666667⁢x⁢x−0.5⁢x−1.5⁢x−2.0⁢x−2.5⁢x−3.0+1.333333333⁢x⁢x−0.5⁢x−1.0⁢x−1.5⁢x−2.5⁢x−3.0−0.04444444444⁢x⁢x−0.5⁢x−1.0⁢x−1.5⁢x−2.0⁢x−2.5,15040⁢−22−ξ⁢ln⁡27⁢cos⁡π⁢ξ−7⁢22−ξ⁢ln⁡26⁢π⁢sin⁡π⁢ξ+21⁢22−ξ⁢ln⁡25⁢π2⁢cos⁡π⁢ξ+35⁢22−ξ⁢ln⁡24⁢π3⁢sin⁡π⁢ξ−35⁢22−ξ⁢ln⁡23⁢π4⁢cos⁡π⁢ξ−21⁢22−ξ⁢ln⁡22⁢π5⁢sin⁡π⁢ξ+7⁢22−ξ⁢ln⁡2⁢π6⁢cos⁡π⁢ξ+22−ξ⁢π7⁢sin⁡π⁢ξ⁢x⁢x−0.5⁢x−1.0⁢x−1.5⁢x−2.0⁢x−2.5⁢x−3.0 &where 0.≤ξandξ≤3.0
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.