emacs-devel
[Top][All Lists]
Advanced

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

Re: In CVS Emacs, calc-eval gives multiplication higher precidence than


From: Lennart Borgman (gmail)
Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division
Date: Sun, 07 Sep 2008 22:34:34 +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

Randal L. Schwartz wrote:
>>>>>> "Stefan" == Stefan Monnier <address@hidden> writes:
> 
> Stefan> I think Calc is plainly wrong is giving higher precedence to the
> Stefan> multiplication because it's completely non standard.  But since I 
> don't
> Stefan> use Calc much and since it's been that way for a while, I won't fight
> Stefan> for it.
> 
> Given the original author's mathematics bias, it made sense (to me, as
> an early tester and contributor) that:
> 
>    2 * 3 / 4 * 5
> 
> would be parsed as
> 
>    (2 * 3) / (4 * 5)
> 
> in a mathematical sense.
> 
> Admittedly, if you're a computer-science guy and not a math guy, this might
> seem initially odd.

It is really odd if you happen to know math.




reply via email to

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