Here is an example....
The question below expects an expression. If the student erroneously
enters 3x/5 . Webwork prints the following syntax error....
Scalar found where operator expected at line 6 of (eval 8608), near "3 $x"
(Missing operator before $x?)
If a right answer is entered there is no syntax error.
How "hide" these error messages from student when THEY enter something goofy?
######################################################################
Context()->flags->set(tolerance => 0.1);
$ans = 2;
BEGIN_PGML
What is the derivative of [`-2/x`]?
[____________]{Formula("2/x^2")}
END_PGML
######################################################################