bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#924: In CVS Emacs, calc-eval gives multiplication higher precidence


From: Lennart Borgman (gmail)
Subject: bug#924: In CVS Emacs, calc-eval gives multiplication higher precidence than division
Date: Sun, 07 Sep 2008 23:19:56 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

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.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]