GNOME Bugzilla – Bug 328524
gcalctool does not produce sqareroots as desired
Last modified: 2006-04-12 06:55:54 UTC
Distribution: Debian 3.1 Package: gcalctool Severity: major Version: GNOME2.10.2 unspecified Gnome-Distributor: Debian Synopsis: gcalctool does not produce sqareroots as desired Bugzilla-Product: gcalctool Bugzilla-Component: general Bugzilla-Version: unspecified Description: Description of Problem: the manual of "Taschenrechner" says you should press a number and click the Wurz (= sqrt) button. Pressing = afterward produces an error. Steps to reproduce the problem: 1. open gcalctool (taschenrechner) 2. click 5 3. click wurz Actual Results: error "fehlerhafter Ausdruck" (translates as:missformed expression) Expected Results: 2.23606 How often does this happen? always Additional Information: I also tried : Wurz, 5 , ), = and get the same error: missformed expression When using the scientific calculater and pressing 5, x^y, (, 2, ), = I get the correct result. Either the manual is incorrect or the function does not work properly. Since sqrt(5) should produce some result the second alternative looks more feasible. Bernhard Kleine ------- Bug created by bug-buddy at 2006-01-25 06:25 -------
Hi Bernhard. A couple of questions: 1/ Which version of gcalctool? (Help->About from the menu bar will tell you this). 2/ Which mode are you in? Look under the View menu to see if you have "arithmetic operator precedence mode" checked. I suspect you are in arithmetic operator precedence mode where the sequence of commands you have to enter is: Sqrt 5 ) = With the very latest version of gcalctool (5.7.27), this works fine. Recently there have been problems with the token parser breaking in arithmetic operator precedence mode, because the label of the square root button was changed to the Unicode symbol for square root (bug #323150). If you are running a version of gcalctool earlier than 5.7.27, you are probably seeing this problem. Having said this, even with the latest one, the documentation is incorrect. Unfortunately there isn't anybody working on gcalctool documentation at the moment (and therefore the online user manual is about two GNOME releases out of date). To make sure that this isn't forgotten, I've added an entry to bug #309210, the placeholder for all the needed gcalctool documentation changes.
I think this bug can be closed, since the program works fine with your help