Student[NumericalAnalysis]
Draw
create a plot of a certain aspect of an interpolation structure
Calling Sequence
Parameters
Options
Description
Examples
Draw(p, opts)
p
-
a POLYINTERP structure
opts
(optional) equation(s) of the form keyword=value where keyword is objects; objects to plot
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.
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.
with⁡StudentNumericalAnalysis:
xy≔0,1,12,1,1,1110,32,34,2,78,52,910,3,1110,72,1
p1≔PolynomialInterpolation⁡xy,independentvar=x,method=lagrange:
Draw⁡p1
p2≔CubicSpline⁡xy,independentvar=x:
Draw⁡p2
Draw⁡p1,objects=BasisFunctions
See Also
Student[NumericalAnalysis][ApproximateValue]
Student[NumericalAnalysis][BasisFunctions]
Student[NumericalAnalysis][CubicSpline]
Student[NumericalAnalysis][DataPoints]
Student[NumericalAnalysis][ExactValue]
Student[NumericalAnalysis][PolynomialInterpolation]
Student[NumericalAnalysis][VisualizationOverview]
Download Help Document