[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calc: `*' binds more strongly than `/'
From: |
Daniel Brockman |
Subject: |
Re: Calc: `*' binds more strongly than `/' |
Date: |
Thu, 19 Apr 2007 04:58:34 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) |
Christian Schlauer <address@hidden> writes:
> But then I say that writing A/B*C and interpreting it like (A/B)*C
> saves me the trouble of typing in parentheses
Not really. You could just type that as A*C/B.
The point is that the reduced precedence of `/' allows you
to always put all numerator factors before the slash and all
denominator factors after it, which is often very convenient.
(You could make the same argument for `+' and `-' --- i.e.,
that `A-B+C' should mean `A-(B+C)'. However, this is not as
natural because one usually does not think of sums as units.
Writing `A-B-C' is completely natural, but `A/B/C' is not
completely natural --- in fact, it is a little confusing.)
I think this is good notation, but I also think that it
would be a good idea to warn the user and make sure that
they know what they are doing when entering such things.
Just make the warning easy to disable and all is well?
Those are my two cents.
--
Daniel Brockman <address@hidden>
- Re: Calc: `*' binds more strongly than `/', (continued)
- Re: Calc: `*' binds more strongly than `/', Davis Herring, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Stefan Monnier, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Luc Teirlinck, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Christian Schlauer, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Luc Teirlinck, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Christian Schlauer, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Jay Belanger, 2007/04/26
- Re: Calc: `*' binds more strongly than `/', Davis Herring, 2007/04/26
- 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 <=
- 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, 2007/04/17