I'm seeing the following odd behavior: for this problem
DOCUMENT(); loadMacros( "PG.pl", "PGbasicmacros.pl", "PGanswermacros.pl", "MathObjects.pl", ); Context("Numeric"); TEXT(beginproblem()); $showPartialCorrectAnswers = 1; $a = random(0,5,1); $b = $a + 1; $error = "ln(x - $a) - (x - $b)"; Context()->flags->set( limits=>[$a, $a+2] ); Context()->texStrings; BEGIN_TEXT Enter answer: \{ ans_rule(25) \} END_TEXT Context()->normalStrings; ANS(Compute( $error )->cmp() ); ENDDOCUMENT();
I'm seeing the correct answer, when displayed, displaying as ln(x - 5) - x - 6, which drops the parentheses from the second term. The problem is marked correctly, so it's only in the display of the answer in the correct answer field.
This is in WeBWorK 2.10, PG 2.10, installed in late August. Is this a bug?
Thanks,
Gavin