Implicit multiplication

Bug #1051022 reported by Atis
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gcalctool (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Implicit multiplication appears to have higher precedence than division:

6/2(1+2) = 1

However no other calculator does that - implicit multiplication should be the same precedence as division, so:

6/2(1+2) = 6/2 * 3 = 3 * 3 = 9

If using explicit multiplication, gcalctool is correct:

6/2×(1+2) = 9

Other documentation and examples:
http://www.gnu.org/software/emacs/manual/html_node/calc/Formulas.html
http://www.wolframalpha.com/input/?i=6%2F2%281%2B2%29
http://www.google.com/search?q=6%2F2%281%2B2%29

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: gcalctool 5.32.0-0ubuntu4
ProcVersionSignature: Ubuntu 2.6.35-32.67-generic 2.6.35.14
Uname: Linux 2.6.35-32-generic x86_64
NonfreeKernelModules: nvidia
Architecture: amd64
Date: Fri Sep 14 21:10:20 2012
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/gcalctool
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release amd64 (20100816.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=lv_LV.utf8
 SHELL=/bin/bash
SourcePackage: gcalctool

Revision history for this message
Atis (ubuntu-atis) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gcalctool (Ubuntu):
status: New → Confirmed
Revision history for this message
PioneerAxon (arth-svnit) wrote :

This bug has been resolved with new parser in gcalctool version 6.5.90 and above.

Changed in gcalctool (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Jeremy Bícha (jbicha) wrote :

gnome-calculator 1:3.7.90 is in Ubuntu raring now and I've verified that I get an answer of 9 for the example calculation.

Changed in gcalctool (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.