Does the tolerance option in Matrix objects actually do anything? Here's a MWE.
DOCUMENT();
loadMacros(
"PGbasicmacros.pl",
"PGanswermacros.pl",
"MathObjects.pl"
);
TEXT(beginproblem);
Context("Matrix");
$val = 0.5644;
$mat = Matrix([[$val]]);
BEGIN_TEXT
\{$mat->ans_array \}
$BR$BR
\{ans_rule(8)\}
END_TEXT
ANS($mat->cmp( tolerance => 0.0001,tolType => 'absolute' ) );
ANS(num_cmp($val, 'tol' => 0.0001 ));
ENDDOCUMENT();
When the number 0.564 is entered in both blanks, the first (in the matrix) is marked correct while the second (a scalar) is marked incorrect. Shouldn't both be incorrect?