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.
The student should not use Maple commands in the response. For an explanation, see Syntax and Student Responses in this Help page.
The instructor must write code such that the student does not have to use a trailing semicolon in the response.
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.
EDU verifies the student response using a basic syntax checker.
If the answer is entered in 1D mode, the formula syntax checker assesses the response, changes expressions to Maple syntax, for example, 2x becomes 2*x, and reports errors if the expression is not a formula. It then generates a Maple statement.
If the answer is created using WebEQ, a content MathML expression is parsed, the syntax checker is run to ensure the answer is of type formula, and then a Maple statement is generated.
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.
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