
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 practise, 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


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:
>


It is also possible to generate multiple choice or true false questions:
>


You can generate algorithmic questions:
>


You can also grade plotting questions:
>


The Quiz Example Worksheet provides additional examples.


Grading a Plotted Function


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:
>


 (2.1) 
A correct answer:
>


 (2.2) 
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:
>


 (2.3) 
An incorrect answer.
>


 (2.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.
>


>


 (2.5) 
>


 (2.6) 
>


 (2.7) 
>


 (2.8) 


Working with Constructed Functions


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:
>


 (3.1) 
>


 (3.2) 
To get the expression associated with the object, we can use the GetExpression command:
>


 (3.3) 
Get the original data used to construct the object using the GetData command:
>


 (3.4) 
Draw an object using the Draw command:
>




Creating Grading Applications


The Grading
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 startup code region, but it is shown here to illustrate a simple use of the Grading commands.
Execute the code in the following codeedit 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.
Actions := module()

