[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calc: `*' binds more strongly than `/'
From: |
Randal L. Schwartz |
Subject: |
Re: Calc: `*' binds more strongly than `/' |
Date: |
Tue, 17 Apr 2007 05:47:00 -0700 |
User-agent: |
Gnus/5.1008 (Gnus v5.10.8) Emacs/21.4 (berkeley-unix) |
>>>>> "Christian" == Christian Schlauer <address@hidden> writes:
Christian> I believe (but I do not know) that Calc's behaviour is (too) far from
Christian> what `ordinary' people (like me ;-) would expect: I ran into this
Christian> feature in my first table and wondered what was going on. I thought
Christian> that Org-mode calculates `wrong'.
You mean from what *programmers* think. Keep in mind that Calc was designed
by a mathematician, and it's much more natural in math to have * have higher
precedence than /. There's no promise that the order of operations is like
programmer-think. I got used to it quite quickly when I was playing with Calc
during its initial development.
I suggest it not be changed. It will break old code (Calc has been around for
almost two decades), it's a minor thing, and people have eventually stumbled
on it, and it's well (over?) documented.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<address@hidden> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
- Re: Calc: `*' binds more strongly than `/', (continued)
- Re: Calc: `*' binds more strongly than `/', Jay Belanger, 2007/04/17
- Re: Calc: `*' binds more strongly than `/', Christian Schlauer, 2007/04/18
- Re: Calc: `*' binds more strongly than `/', Daniel Brockman, 2007/04/18
- Re: Calc: `*' binds more strongly than `/', Christian Schlauer, 2007/04/22
- Re: Calc: `*' binds more strongly than `/', Daniel Brockman, 2007/04/26
- RE: Calc: `*' binds more strongly than `/', Drew Adams, 2007/04/19
- Re: Calc: `*' binds more strongly than `/', David Kastrup, 2007/04/19
- RE: Calc: `*' binds more strongly than `/', Drew Adams, 2007/04/19
- Re: Calc: `*' binds more strongly than `/', David Kastrup, 2007/04/19
- Re: Calc: `*' binds more strongly than `/', Richard Stallman, 2007/04/16
Re: Calc: `*' binds more strongly than `/',
Randal L. Schwartz <=