Plotting a Student Response

Maple T.A. uses Maple plotting features to graph student responses or a function derived from a student response, for example, the definite integral of the student response. Maple provides many ways of representing data and mathematical expressions graphically using plots.

 

Plotting a student response is available only with the Maple-graded Question Type.

 

Plotting a Student Response

When entering code for plotting in the Question Bank Editor, use only one Maple plot command. It must be the last command entered. You must use the long form name for Maple package functions

 

Example

The following is the source file for a Maple-graded Formula question that plots the student response.

question=Enter an expression in x@

maple=true@ plot=plot($RESPONSE,x=0..10)@

type=formula@

mode=Maple@

name=2D Maple plot@

editing=useHTML@

 

The following is the source code for a Maple Syntax question that plots the student response using the Maple tubeplot command.

maple=Maple @

plot=plots[tubeplot]($RESPONSE, t=0..4, radius=.05, numpoints=70)@

 

Important:
You must use the long form name for Maple package functions.
You must test your plot code prior to publishing assignments. Maple T.A. does not display error messages if the plot does not work correctly.

See Also:

Maple-graded questions in the Question Bank Editor

Maple-graded Question Type - Overview

Tutorial: Maple-based Algorithmic  Question Authoring