When we use Maple grading, we are now required to use Maple Syntax/Symbolic Mode. This has brought up some issues. Maple syntax has no intelligence about expressions. For example ex is literally treated as an unknown constant "e" raised to the "x". Formula grading is intelligent enought to recognize that expression is the same as exp(x). This document contains fixes for issues in Maple grading caused by this. The Problem(?) with xyTo Maple xy is NOT the same as x*y. You can just grade against xy if the question allows. For example if the answer to the question is 2xy then grading against 2*xy will work. Two problems though:
The Problem with Brackets on BracketsMaple grading will misinterpret expressions like . In this case Maple will take this expression to be a function evaluated at . Explicit multiplication would fix this, but you cannot expect students to do that consistently. There are two ways to handle this:
The Problem with e(t)An exponential raised to any single-character in brackets is interpreted as a derivative. For example to Maple e(2) is the second derivative of e. Even worse, e(t) is parsed as the "t-th" derivative and returns this usgly string: The Problem with nπ and π(...)Consider the following:
A:=StringTools:-SubstituteAll("$RESPONSE","`",""); This leaves the string nπ which can also be substituted out: B:=StringTools:-SubstituteAll(A,"n& pi;","n*Pi"); &/or B1:=StringTools:-SubstituteAll(B,"& pi;n","n*Pi"); Note that & pi; must be used instead of π as Maple does not recognize the character π. Note: Do NOT leave a space between & and pi; . It is done here to prevent the browser from rendering & pi; as the pi character. The third case is also a simple substitution: C:=StringTools:-Substitute("$RESPONSE","Pi(x-1)","Pi*(x-1)"); Note: In all cases of substituting you must convert the result back to a Maple expression before grading: AMark:=parse(A); |
Fixes Index | Last updated: 2022/07/05 SS/DAG |