How do I get webwork2 to require a student put in the exact answer for a problem with an answer like sqrt(3)/2 ? I tried this:
&ANS(num_cmp(sqrt(3)/2,mode => 'std',tol => 0));
but when the answer sqrt(3)/2 is entered, webwork2 marks it wrong:
Entered, Answer Preview, Correct, Result
0.866025403784439, sqrt(3)/2, 0.866025403784439, incorrect
Even though the "Entered" and "Correct" results are identical, webwork
marks the answer incorrect. (Note again, the answer was entered in the
answer box by the student in the form sqrt(3)/2, not as
0.866025403784439)
Thanks,
Lars.
<| Post or View Comments |>
|