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

Previous Next

Package: emacs;

Reported by: Carsten Dominik <carsten.dominik <at> gmail.com>

Date: Mon, 8 Sep 2008 10:40:03 UTC

Severity: normal

Merged with 914, 915, 918, 920, 921, 923, 924, 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


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Carsten Dominik <carsten.dominik <at> gmail.com>
To: "Randal L. Schwartz" <merlyn <at> stonehenge.com>
Cc: emacs-devel <at> gnu.org, bug-gnu-emacs <at> gnu.org
Subject: Re: In CVS Emacs, calc-eval gives multiplication higher precidence than division
Date: Mon, 8 Sep 2008 12:30:11 +0200
On Sep 7, 2008, at 10:32 PM, Randal L. Schwartz wrote:

>>>>>> "Stefan" == Stefan Monnier <monnier <at> iro.umontreal.ca> 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.


I would fight for the current calc implementation, it is an important  
convenience when entering equations.  I am relying on it every day.

- Carsten



>
>
> 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.
>
> -- 
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503  
> 777 0095
> <merlyn <at> stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside  
> discussion
>
>
>






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.