Maple-graded Formula

Question Mode: Maple

qu.x.y.mode=Maple@

type=formula@

 

In Maple-graded Formula question types, students can enter a math formula, that is, an expression constructed of numbers, variable names, and the standard arithmetic expressions and functions.

 

 

Note: In the Question Bank Editor, Maple-graded question screen, the Select the type of expression you want to accept field, lists the Maple-graded Formula option as simply Formula.

 

Guidelines

 

For example, evalb($RESPONSE=factor(x^2-1); as a single line of code allows the student to respond with (x+1)(x-1) omitting the trailing semicolon. This is especially important, as questions created using the Maple-graded Formula question subtype are not obvious Maple questions from the student's perspective. A non-Maple student user can answer a Maple-graded Formula question type without knowing Maple syntax.

Syntax

EDU verifies the student response using a basic syntax checker.

 

 

Student Responses

You do not need to explicitly check that the student response is a formula.  For example, you do not need to check whether factor(expr)is a command that calculates the expression for the student.  However, a student response like factor(x^2-1) would be interpreted as implicit multiplication and converted to f*a*c*t*o*r*(x^2-1).  As such, the student response will be marked as wrong.

 

You may need to write Maple code for responses that are interpreted as formulas by EDU, but are Maple commands. For example, if you ask for the value of sin(Pi/4), you must use code to ensure that the student does not simply enter  sin(Pi/4), which the EDU syntax checker accepts and passes to Maple. The correct response is, for example, sqrt(2)/2), which is also a EDU formula and a Maple command.

 

Variables

The variable e should not be assigned as a global variable in Maple code. It can be used, however, as a local variable.

 

See Also:

Creating Maple-graded Questions in the QBE

Maple-graded Question Type - Overview

Maple Syntax