Student[NumericalAnalysis] - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

Student[NumericalAnalysis]

  

Function

  

return the exact function from an interpolation structure

 

Calling Sequence

Parameters

Description

Examples

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

withStudentNumericalAnalysis:

xy0,4.0,0.5,0,1.0,2.0,1.5,0,2.0,1.0,2.5,0,3.0,0.5

xy0,4.0,0.5,0,1.0,−2.0,1.5,0,2.0,1.0,2.5,0,3.0,−0.5

(1)

Note that the function option allows you to specify the exact function, which is then saved in the generated POLYINTERP structure.

p1PolynomialInterpolationxy,function=22xcosPix,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.

Functionp1

22xcosπx

(2)

plotFunctionp1,x=0..3

See Also

Student[NumericalAnalysis]

Student[NumericalAnalysis][ApproximateValue]

Student[NumericalAnalysis][ComputationOverview]

Student[NumericalAnalysis][CubicSpline]

Student[NumericalAnalysis][DataPoints]

Student[NumericalAnalysis][ExactValue]

Student[NumericalAnalysis][InterpolantRemainderTerm]

Student[NumericalAnalysis][PolynomialInterpolation]

Student[NumericalAnalysis][RemainderTerm]