[ww-bugs] Bug 2634: Overzealous reduction of constant formulas
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Fri Jun 14 14:38:06 EDT 2013
http://bugs.webwork.maa.org/show_bug.cgi?id=2634
--- Comment #2 from Paul Pearson <paultpearson at gmail.com> 2013-06-14 14:38:06 ---
Hi Davide,
The original problem FortLewis/Authoring/Templates/Trig/DisableFunctions1.pg
did use Formula() instead of Compute, and it had the same problem.
Specifically, using ww2.7 the value of Formula("cos(pi)"); was reduced to -1
when the desired output was \( \cos(\pi) \). I know for certain that in some
older version of webwork (ww2.5.?.? or ww2.4.9?) this reduction did not happen
because I documented it on the wiki as an example problem (I even have a screen
shot!).
In any case, the way I found to force non-reduction was using
Formula("cos(pi)") and
Context()->constants->set(pi => {keepName => 1});
Please let me know if there is anything else that I should be doing. I did
update the wiki page with this fix.
Thanks!
Paul
--
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