GNOME Bugzilla – Bug 576573
wrong value returned when asked, calculation error
Last modified: 2009-06-24 03:54:13 UTC
Please describe the problem: The gcalctool returns the wrong value of the cos(pi) (cosine of Pi) when the format is radians. While working in the degrees format the program returns the right value (-1). Steps to reproduce: 1. open gcalctool 2. select the radians format in the scientific mode 3. select the constant Pi or enter its value in the display 4. ask for the cosine of Pi, the correct value is -1 Actual results: the value returned is close to 1 Expected results: the value returned should be -1. Does this happen every time? it happens everytime Other information:
I cannot reproduce this with gcalcool 5.24.3.1 (Gentoo). Here is what I do (I simply could not find reverse polish notation (bug 35045)). * Modes: Scientific, Radians, Dec, Fix(9) * Use Cos button or enter J -> Cos( * Use Con button, C3 -> Cos(3.141592654 * Use ) button or key -> Cos(3.141592654) * Use = button or enter key -> -1 What makes my output look different from yours?
Hi Andreas, Your result is correct and I also got the correct result using gcalctool on Opensuse 11.0. It seems that the wrong result I reported here only happens in Ubuntu. Weird. I'll test the new Ubuntu and see what happens. (In reply to comment #1) > I cannot reproduce this with gcalcool 5.24.3.1 (Gentoo). Here is what I do (I > simply could not find reverse polish notation (bug 35045)). > > * Modes: Scientific, Radians, Dec, Fix(9) > * Use Cos button or enter J -> Cos( > * Use Con button, C3 -> Cos(3.141592654 > * Use ) button or key -> Cos(3.141592654) > * Use = button or enter key -> -1 > > What makes my output look different from yours? >
Marcelo, I'm assuming you're using gcalctool 5.24.2 or less thus this is a duplicate of bug 559575 Thanks for taking the time to report this bug. This particular bug has already been reported into our bug tracking system, but we are happy to tell you that the problem has already been fixed. It should be solved in the next software version. You may want to check for a software upgrade. *** This bug has been marked as a duplicate of 559575 ***