The Grading Package
The new Grading package in Maple 18 features new and improved tools for creating interactive quizzes and applications. With the Quiz command, you can generate interactive questions in Maple that ask a question and grade a student's response, making it easy to provide students with the opportunity to practice, explore and reinforce concepts.
The Grading package also features a robust toolkit of commands that can be used to build interactive applications. For example, say we have created an application that asks students to describe an expression, such as an arbitrary linear, quadratic, or absolute value function, by interactively graphing it. They can enter this graph in several ways, including by specifying particular points, such as the vertex of a parabola or the roots of an equation. The GradePlot command can then be used to grade the plot to a customizable margin of error by comparing the student's graph with the actual graph of the function.
Generating a Quiz
Grading a Plotted Function
Working with Constructed Functions
Creating Grading Applications
The Quiz command generates a simple interactive tool that displays a question, accepts a response, and grades the response.
The simplest forms of a quiz take two arguments, a question and an answer:
QuizWhat is 1 + 1?, 2
What is 1 + 1?
It is also possible to generate multiple choice or true false questions:
QuizWhat is 1 + 1?, 3, 0,1,2,3,4, 'style'='multiplechoice'
You can generate algorithmic questions:
QuizIs the following number prime?, true, proc nextprimerand2..20 end, 'style'=truefalse
Is the following number prime?
You can also grade plotting questions:
QuizWhich of the following could be portions of the plot of sin(x)?, 1,2, plotsinx,x=0..rand2..3, plotsinx,x=rand2..3..5, plot2⋅ sinx,x=rand2..3..rand4..7, style=multipleselect, gradebyindex=true, size=250,150
Which of the following could be portions of the plot of sin(x)?
The Quiz Example Worksheet provides additional examples.
The GradePlot command allows you to construct representations of simple mathematical functions and then grade them.
In the following examples, an object representing a quadratic function can be created by the QuadraticFunction constructor in one of two ways:
An expression in a single variable can be provided.
Alternatively, two points, the first representing the vertex and the second another point on the function, can be given.
The solution as set by the instructor:
correctquadratic:=<< QuadraticFunction: x^2-4*x+4>>
A correct answer:
answer1 ≔QuadraticFunction2, 0, 0, 4;
answer1:=<< QuadraticFunction: v^2-4*v+4>>
A correct answer, if small errors were considered acceptable. In the context of plotted functions, it is more likely that points with a certain amount of error would be provided:
answer2 ≔ QuadraticFunction2.0001, −0.0023, 0.0126, 4.0108;
answer2:=<< QuadraticFunction: 1.015934496*v^2-4.063941171*v+4.061844369>>
An incorrect answer.
answer3 ≔ QuadraticFunction3, −0, 0, 4;
answer3:=<< QuadraticFunction: 4/9*v^2-8/3*v+4>>
The GradePlot command compares the desired solution to the provided answer and returns a grade of 0 or 1. Since the grading is in the context of plotting, the plot ranges must be provided. Note that the second answer is considered incorrect if a tighter error tolerance is specified.
GradePlotcorrectquadratic, answer1, pview;
GradePlotcorrectquadratic, answer2, pview;
GradePlotcorrectquadratic, answer2, pview, 'tolerance'=0.0001;
GradePlotcorrectquadratic, answer3, pview;
There are several commands available for getting more details on the functions created using the Grading package's constructors. A few examples are shown below:
a1:=<< AbsoluteValueFunction: 2*abs(x-3)+1>>
a2 ≔ AbsoluteValueFunction2.5, 0.8, 2, 2;
a2:=<< AbsoluteValueFunction: 2.400000000*abs(v-2.5)+.8>>
To get the expression associated with the object, we can use the GetExpression command:
Get the original data used to construct the object using the GetData command:
<< GridPoint: [2.5, .8]>>,<< GridPoint: [2, 2]>>
Draw an object using the Draw command:
plots:-displayDrawa1, 0..10, 0 ..10, 'color'=Blue, Drawa2, 0..10, 0..10, 'color'=Green;
package can be used effectively with embedded components to create grading applications. Normally, the components below would be placed in a single document and the code would be placed in the start-up code region, but it is shown here to illustrate a simple use of the Grading commands.
Execute the code in the following code-edit region before using the components below. The example below allows a user to click on two points to draw the given line.
A more complete version of this application is available here: DrawLine - MathApp.
Draw the graph of 2⋅x−5
Download Help Document
What kind of issue would you like to report? (Optional)