[ww-bugs] Bug 3716: New: Context("Fraction") does not allow error in decimal answers.
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Mon Aug 29 09:36:01 EDT 2016
http://bugs.webwork.maa.org/show_bug.cgi?id=3716
Summary: Context("Fraction") does not allow error in decimal
answers.
Product: PG
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P5
Component: MathObjects
AssignedTo: dpvc at union.edu
ReportedBy: goehle at gmail.com
Web browser ---
version:
According to the documentation in contextFraction.pl when using
Context("Fraction") students should be able to submit decimal answers. However
when using this context decimal answers are required to be exactly equal which
makes it impossible to enter fractions with repeating decimal expansions. I
did find a problem in the wild that uses contextFraction.pl in this way. In
Library/Rochester/setIntegrals14Substitution/csuf_in_14_1.pg with seed 1247 the
answer is -20/7, which has a repeating decimal expansion, and the problem does
not ask for a fraction answer. I don't know what side effects there would be
(if any) of adding a tolerance to the fraction comparator.
Test code:
DOCUMENT();
loadMacros(
'PGstandard.pl',
'PGML.pl',
'contextFraction.pl',
);
TEXT(beginproblem());
Context('Fraction');
$A = Fraction(-20,7)->reduce;
$B = Fraction(1,2)->reduce;
BEGIN_PGML
Enter 2.85714285714 :
[`` [$A] = ``] [______________________]{$A}
Enter .5 :
[`` [$B] = ``] [______________________]{$B}
END_PGML
ENDDOCUMENT();
--
Configure bugmail: http://bugs.webwork.maa.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the webwork-bugs
mailing list