emacs-devel
[Top][All Lists]
Advanced

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

Re: bug#914: In CVS Emacs, calc-eval gives multiplication higher precide


From: Lennart Borgman (gmail)
Subject: Re: bug#914: In CVS Emacs, calc-eval gives multiplication higher precidence than division
Date: Tue, 09 Sep 2008 18:41:02 +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

Ulrich Mueller wrote:
>>>>>> On Tue, 09 Sep 2008, Francis Litterio wrote:
> 
>> But we should be prepared for more bug reports about this, unless some
>> means can be devised to alert Calc users about the precedence rule.
> 
>> Would it be in appropriate to append a comment to the result when Calc
>> is used interactively?
> 
> I thought the problem (if there is one) existed only when evaluating
> algebraic notation? If used interactively, calc is using RPN and there
> is no ambiguity:
> 
>    1 RET 2 / 1000 *      is   (1 / 2) * 1000
>    1 RET 2 RET 1000 * /  is   1 / (2 * 1000)
> 
> Am I mising something?


Yes, there is an "algebraic mode". This is described in

  (info "(Calc) Algebraic Tutorial")

On top of this is a big remark which tells about the non-standard
precedence rule we have been discussing:

   *Warning:* Note that `/' has lower precedence than `*', so that
   `a/b*c' is interpreted as `a/(b*c)'.  See below for details.




reply via email to

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