[ww-bugs] Bug 2634: Overzealous reduction of constant formulas
bugzilla-daemon at webwork.maa.org
bugzilla-daemon at webwork.maa.org
Fri Jun 14 11:24:31 EDT 2013
http://bugs.webwork.maa.org/show_bug.cgi?id=2634
Davide P. Cervone <dpvc at union.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
--- Comment #1 from Davide P. Cervone <dpvc at union.edu> 2013-06-14 11:24:31 ---
Since cos(pi) is a constant, Compute() will return a real value, not a formula,
and that real value will be -1. So when you insert $f1 into the output, it
correctly displays as -1. It should NOT be cos(pi) in this case.
If you want it to be cos(pi), you cold use Formula() rather than Compute(), and
in that case you don't need the reduceConstants and reduceConstantFunctions
settings, since named constants should keep their names rather than be reduced;
however, there is a problem in 2.7 where pi seems to have lost the flag that
does that (I found this while working on my presentation for Monday), and I
haven't tracked that down yet. There is also a problem in 2.7 that causes the
correct answer for constants generated by Compute() to not be set properly, but
I know what the problem is there and will be fixing that soon. But neither of
these issues is causing your output, since it is actually correct.
I also tested this in version 2.5.1, and it also works this way, so I don't
think this is a change from 2.5 to 2.7.
--
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