Description
Maple questions use the
\maple
macro instead of \answer
to specify
an answer.
Syntax
\maple{correct-answer}
- correct-answer
- The correct answer, expressed in Maple syntax.
Notes
-
Maple's capabilities allow for very complicated grading procedures. The simple macro
\maple
assembles its argument into the Maple commands required to produce the intended result. Authors can provide their own raw Maple code with the starred macro\maple*
.The unstarred statement
\maple{<expression>}
results in the Maple commandevalb($RESPONSE = <expression>);
being placed in the EDU script. EDU grades Maple questions by passing to Maple a list of Maple instructions for execution at grading time. The last instruction must evaluate to a boolean (hence the 'evalb
' command); EDU bases its grade on whether that boolean is true or false. In order to access the student answer that is being graded, EDU preloads the variable$RESPONSE
with the student response.Authors can provide their own set of grading commands with the
\maple*
macro. Its single argument is added verbatim to the EDU script; therfore, the argument must be a list of Maple commands, in the correct syntax, that results in either 'true' or 'false'.\maple*{maple-commands}
- maple-commands
- A Maple command sequence that results in 'true' if the student's response is correct, and 'false' otherwise.