Description
\drawMaplePlot
inserts a Maple-driven 2D
plot into a question. \drawMaplePlot3d
inserts a Maple-driven 3D
(surface) plot.
Syntax
\drawMaplePlot[width][height]{formula}{variable}{min}{max}
- width option
- The width of the plot, in pixels. Default is 250.
- height option
- The height of the plot, in pixels. Default is 250.
- formula
- Formula of the function in Maple syntax
- variable
- The independent variable
- min
- Minimum value of the variable on the horizontal axis
- max
- Maximum value of the variable on the horizontal axis
\drawMaplePlot3d[width][height]{formula}{variable1}{min1}{max1}{variable2}{min2}{max2}
- width option
- The width of the plot, in pixels. Default is 250.
- height option
- The height of the plot, in pixels. Default is 250.
- formula
- Formula of the function in Maple syntax
- variable1
- The first independent variable
- min1
- Minimum value of the first independent variable
- max1
- Maximum value of the first independent variable
- variable2
- The second independent variable
- min2
- Minimum value of the second independent variable
- max2
- Maximum value of the second independent variable
Notes
- These macros may be used in any question type.
-
The simple macros
\drawMaplePlot
anddrawMaplePlot3d
assemble their arguments into the Maple commands required to produce the intended graphics.\drawMaplePlot{<expression>}{x}{a}{b}
translates into the Maple commandplot(<expression>, x=a..b);
and\drawMaplePlot3d{<expression>}{x}{a}{b}{y}{c}{d}
translates intoplot3d(<expression>, x=a..b, y=c..d);
The first argument to the Maple commandplot
is the expression to be plotted (or a more complicated structure that evaluates to a number upon substitution for the independent variable), and the remaining arguments specify the independent variables and their ranges of values to be used in the plot. - Maple offers many other more complicated
and powerful plot structures. Authors should refer to the
Maple documentation to learn more about Maple's plotting
capabilities. To use a plotting command other than
plot
orplot3d
, or to add a plotting option, authors should use\drawMaplePlot*
.\drawMaplePlot*[width][height]{plot-command}
- width option
- The width of the plot, in pixels. Default is 250.
- height option
- The height of the plot, in pixels. Default is 250.
- plot-command
- A complete Maple plotting command; this argument is placed verbatim into the EDU script.