qu.x.y.mode=Maple@
type=maple@
Maple Syntax is a subtype of the Maple-graded question type.
In this subtype, the student is required to :
Respond using Maple commands and expressions
Enter syntactically correct Maple expressions
The Maple Syntax subtype is particularly useful when the answer is to be expressed as a:
Definite integral, int(f(x),x=a..b)
Derivative, diff(f(x),x)
Limit, limit(f(x), x=0)
Differential equation, for example, diff(y(x,t),t,t)=c^2*diff(y(x,t),x,x)
Set, for example, {1,4,9}
Some Maple commands take unevaluated forms. For example, Diff is the inert form of diff. In EDU, students are directed to answer questions using the unevaluated forms of Maple commands. Your code should accept these forms.
The instructor should specify to the student (in the question text) whether a trailing semicolon is required, or alternatively, write code such that the presence or absence of a trailing semicolon has no bearing on the evaluation of the response.
For example, evalb($RESPONSE=factor(x^2-1); as one line of question code does not allow a student response with a semicolon, such as (x-1)*(x+1); The response is marked as incorrect.
If the question code contains two lines, completed with semicolons, such as
A:= $RESPONSE;
evalb(A=factor(x^2-1);
the student can answer with or without a semicolon and the response is marked as correct.
EDU does not check the syntax of the student response.
If the answer is entered in 1-D mode, it is sent directly to Maple for parsing. The student is expected to enter syntactically correct Maple expressions. Shortcuts such as 2x are marked incorrect.
If the answer is entered in 2-D, the corresponding MathML expression is bundled and sent to Maple.
As the author, you can verify whether the student is using a Maple command to calculate the answer. For more information, see Using Maple Code to Prevent Cheating in Maple Syntax Questions.
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 Formula Questions
Maple-graded Question Type - Overview