Draw - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Student[NumericalAnalysis]

  

Draw

  

create a plot of a certain aspect of an interpolation structure

 

Calling Sequence

Parameters

Options

Description

Examples

Calling Sequence

Draw(p, opts)

Parameters

p

-

a POLYINTERP structure

opts

-

(optional) equation(s) of the form keyword=value where keyword is objects; objects to plot

Options

• 

objects = list, ApproximateValue, BasisFunctions, DataPoints, ExactValue, Function, Interpolant

  

Objects to draw.  By default, objects = [DataPoints, Interpolant, Function, ApproximateValue], assuming each of these objects is available.  If one of the objects in the default is not available, it will not be included in the plot.

Description

• 

The Draw command plots different components of an interpolation structure.

• 

By default, the Draw command plots the following objects: the data points, the approximate polynomial, the function, and the extrapolated points, as long as they are available.

• 

If the option objects is provided, the Draw command will plot the specified objects.

• 

The POLYINTERP structure is created using the PolynomialInterpolation command or the CubicSpline command.

• 

The colors of each object in the plot can be specified using the SetColors mechanism.

Examples

withStudentNumericalAnalysis:

xy0,1,12,1,1,1110,32,34,2,78,52,910,3,1110,72,1

xy0,1,12,1,1,1110,32,34,2,78,52,910,3,1110,72,1

(1)

p1PolynomialInterpolationxy,independentvar=x,method=lagrange:

Drawp1

p2CubicSplinexy,independentvar=x:

Drawp2

Drawp1,objects=BasisFunctions

See Also

Student[NumericalAnalysis]

Student[NumericalAnalysis][ApproximateValue]

Student[NumericalAnalysis][BasisFunctions]

Student[NumericalAnalysis][CubicSpline]

Student[NumericalAnalysis][DataPoints]

Student[NumericalAnalysis][ExactValue]

Student[NumericalAnalysis][PolynomialInterpolation]

Student[NumericalAnalysis][VisualizationOverview]