[ww-bugs] Bug 3606: New: Missing parentheses in problem

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Thu Feb 18 09:41:02 EST 2016


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

           Summary: Missing parentheses in problem
           Product: Problem Libraries
           Version: unspecified
          Platform: PC
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P5
         Component: Library (OPL)
        AssignedTo: jj at asu.edu
        ReportedBy: robert.byerly at ttu.edu
        Web browser Chrome
           version:


webwork-open-problem-library/OpenProblemLibrary/WHFreeman/Rogawski_Calculus_Early_Transcendentals_Second_Edition/3_Differentiation/3.3_Product_and_Quotient_Rules/3.3.6.pg

problem contains lines:

         $a=random(-11,13,1);

         $derivf=Compute("3*$a**2+18*$a+1");

When $a is assigned a negative value, $derivf is parsed incorrectly.

Suggested fix:
          $derivf=Compute("3*($a)**2+18*$a+1");

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