[ww-bugs] Bug 3416: New: incorrect formula WW 2.8 rochester_problib/setIntegrals0Theory/sc5_2_28_mo.pg

bugzilla-daemon at webwork.maa.org bugzilla-daemon at webwork.maa.org
Mon Sep 7 14:46:22 EDT 2015


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

           Summary: incorrect formula WW 2.8
                    rochester_problib/setIntegrals0Theory/sc5_2_28_mo.pg
           Product: Problem libraries
           Version: unspecified
          Platform: Macintosh
        OS/Version: Mac OS
            Status: NEW
          Severity: normal
          Priority: P5
         Component: rochester
        AssignedTo: apizer at math.rochester.edu
        ReportedBy: abalogh at utpa.edu
        Web browser Firefox
           version:
    Browser version 40.0.3
            number:


for question \( \int_{0}^{$e} | $a x - $b | dx = \) 

the answer is given as

if ($e>=($b/$a)) {
$ans = Compute("(1/2)*$b*($b/$a)+(1/2)*($e-$b/$a)*($a*$e-$b)");
} else {
$ans = Compute("$e*($a*$e-$b) + $e*($b-($a*$e-$b))/2");
}

The second part simplifies to 
$a*$e*$e/2 
but the correct answer is
$e*$b-$e*$a*$e/2

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