Student[NumericalAnalysis] - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : Education : Student Package : Numerical Analysis : Computation : Student/NumericalAnalysis/Function

Student[NumericalAnalysis]

 Function
 return the exact function from an interpolation structure

 Calling Sequence Function(p)

Parameters

 p - a POLYINTERP structure

Description

 • 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.

Examples

 > $\mathrm{with}\left(\mathrm{Student}[\mathrm{NumericalAnalysis}]\right):$
 > $\mathrm{xy}≔\left[\left[0,4.0\right],\left[0.5,0\right],\left[1.0,-2.0\right],\left[1.5,0\right],\left[2.0,1.0\right],\left[2.5,0\right],\left[3.0,-0.5\right]\right]$
 ${\mathrm{xy}}{:=}\left[\left[{0}{,}{4.0}\right]{,}\left[{0.5}{,}{0}\right]{,}\left[{1.0}{,}{-}{2.0}\right]{,}\left[{1.5}{,}{0}\right]{,}\left[{2.0}{,}{1.0}\right]{,}\left[{2.5}{,}{0}\right]{,}\left[{3.0}{,}{-}{0.5}\right]\right]$ (1)
 > $\mathrm{p1}≔\mathrm{PolynomialInterpolation}\left(\mathrm{xy},\mathrm{function}={2}^{2-x}\mathrm{cos}\left(\mathrm{π}x\right),\mathrm{method}=\mathrm{lagrange},\mathrm{extrapolate}=\left[0.25,0.75,1.25\right],\mathrm{errorboundvar}='\mathrm{ξ}'\right):$
 > $\mathrm{Function}\left(\mathrm{p1}\right)$
 ${{2}}^{{2}{-}{x}}{}{\mathrm{cos}}{}\left({\mathrm{π}}{}{x}\right)$ (2)
 > $\mathrm{plot}\left(\mathrm{Function}\left(\mathrm{p1}\right),x=0..3\right)$

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam