[ww-bugs] Bug 3550: New: MathObjects does not set correct answer latex string correctly when using eval on a MathObject

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Sun Dec 13 19:00:38 EST 2015


http://bugs.webwork.maa.org/show_bug.cgi?id=3550

           Summary: MathObjects does not set correct answer latex string
                    correctly when using eval on a MathObject
           Product: PG
           Version: 2.10
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: MathObjects
        AssignedTo: dpvc at union.edu
        ReportedBy: dglin at math.ucalgary.ca
        Web browser ---
           version:


In the code snippet below, the answer is evaluated correctly (i.e. 0 is marked
correct), but the correct answer column displays pi.  This only appears to
happen when $a is a MathObject and not a perl real.

$f = Compute("sin(x)");
$a = Compute("pi");
$b = $f->eval(x=>$a);

BEGIN_TEXT
\(\sin(\pi)\) = \{ans_rule(5)\}
END_TEXT

ANS($b->cmp());

-- 
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