GNU bug report logs - #924
In CVS Emacs, calc-eval gives multiplication higher precidence than division

Previous Next

Package: emacs;

Reported by: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>

Date: Sun, 7 Sep 2008 21:25:09 UTC

Severity: normal

Merged with 914, 915, 918, 920, 921, 923, 928, 929, 930, 932, 933, 934, 937, 941, 944

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Lennart Borgman (gmail)" <lennart.borgman <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: jay.p.belanger <at> gmail.com, bug-gnu-emacs <at> gnu.org,
        Francis Litterio <flitterio <at> gmail.com>, emacs-devel <at> gnu.org
Subject: bug#924: In CVS Emacs,	calc-eval gives multiplication higher precidence than division
Date: Sun, 07 Sep 2008 23:19:56 +0200
Stefan Monnier wrote:
>> According to Wikipedia:
>>   An expression like 1/2x is interpreted as 1/(2x) by TI-82, but as
>>   (1/2)x by TI-83. While the first interpretation may be expected by
>>   some users, only the latter is in agreement with the standard rules
>>   stated above. 
> 
> That could be due to a higher precedence, but could also be due to an
> equal precedence together with left-associativity.  Given that (a*b)/c
> is often mathematically equal to a*(b/c), the difference is generally
> hard to see, unless rounding comes into play.

But that is a bit different from (a/b)*c, a/(b*c) ... - otherwise I agree.





This bug report was last modified 16 years and 256 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.