-
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
With the new version of contextFraction.pl
the reduce
method does not seem to be correctly dealing with simplifying fractions when reduceConstants => 0
is set. The following MWE demonstrates the issue:
DOCUMENT();
loadMacros('PGstandard.pl', 'PGML.pl', 'contextFraction.pl');
Context('Fraction');
Context()->flags->set(reduceConstants => 0);
$frac = Compute("-(-2) / 9")->reduce;
BEGIN_PGML
Enter [`[$frac]`]: [_]{$frac}{10}
END_PGML
ENDDOCUMENT();
The display of the fraction is a decimal in the problem, and the correct answer is not simplified at all. With the version of contextFraction.pl
in PG 2.19 or before, the fraction would be displayed as simplified and not a decimal and the correct answer would be the same. Here is screen shot demonstrating what happens when you show correct answers with this problem:

Metadata
Metadata
Assignees
Labels
No labels