Hi,
I've recently started creating questions using MapleTA, and at the moment I've hit a stumbling block.
For a particular question, the students need to enter a formula. When I input the answer in decimal form, the question is graded correctly; when I put it in fractional form, it's not. I've used the simplify command in every perturbation I know, but I can't get it to work.
More details:
Algorithm
| $a |
= |
rint(3,10) |
| condition:not(eq($a,0)) |
| $b |
= |
$a/2*rint(-7,7) |
| condition:not(eq($b,0)) |
| condition:not(eq($b,1)) |
| condition:not(eq($b,$a)) |
| condition:not(eq($b,-$a)) |
|
|
|
|
|
|
|
| $re |
= |
maple("MathML[ExportPresentation]( ($a*(X[n]))+($b*(X[n-1])) |
= |
0)") |
|
|
|
|
|
| $s |
= |
-$b/$a |
|
|
|
Question:
Consider the recursion formula $re.
Give the general solution Xn=Edit where A is an arbitrary constant.
Solution box has:
Answer: (A)*($s)^n
and I've also tried
Answer: simplify((A)*($s)^n);
I've tried the following grading codes:
is($ANSWER-RESPONSE=0);
is(simplify($ANSWER)-simplify($RESPONSE)=0);
...and others like that, in different combinations.
Without fail, if $s is not an integer, then an otherwise correct answer expressed as a fraction is marked wrong.
Please help!
-A