all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: "Randal L. Schwartz" <merlyn@stonehenge.com>
Cc: emacs-devel@gnu.org, 914@emacsbugs.donarmstrong.com,
	Carsten Dominik <carsten.dominik@gmail.com>
Subject: bug#914: In CVS Emacs, calc-eval gives multiplication higher  precidence  than division
Date: Mon, 08 Sep 2008 22:53:54 +0200	[thread overview]
Message-ID: <48C590E2.4040804__33761.1359930181$1220908291$gmane$org@gmail.com> (raw)
In-Reply-To: <86k5dmxtaz.fsf@blue.stonehenge.com>

Randal L. Schwartz wrote:
>>>>>> "Lennart" == Lennart Borgman (gmail) <lennart.borgman@gmail.com> writes:
> 
> Lennart> Of course I can see that the behaviour you want saves you a lot of key
> Lennart> strokes. My question is really about the default value. You can easily
> Lennart> change that, of course. The question is really if you prefer the old
> Lennart> default and in that case what arguments you want to present for that.
> 
> There's no need to change the longstanding defaults, because it would break
> things.  You already have a knob you can tweak if you think that "2 a / 3 b"
> should multiply by b, rather than divide by it.  That's a personal choice.

I think communication can be very difficult if you have too much
personal choice in it. Math is about communication (for a special class
of logical problems).

The original bug report was about this

  (calc-eval "1 / 2 * 1000")

Calc treats this as 1 / (2 * 1000) which is just plain wrong. I have
never seen a mathematician treat it that way - though I have seen many
pupils doing that.


> Frankly, I'd never touch that knob, because it looks to me like it should
> divide by b.  And I think most mathemeticians would agree, and that's the
> target for that part of Calc.  Stop thinking computer science.  Think
> *math* notation.







  parent reply	other threads:[~2008-09-08 20:53 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-07 16:06 In CVS Emacs, calc-eval gives multiplication higher precidence than division Francis Litterio
2008-09-07 16:37 ` Jay Belanger
2008-09-07 18:15   ` Francis Litterio
2008-09-07 19:46   ` Stefan Monnier
2008-09-07 20:19     ` bug#920: " Lennart Borgman (gmail)
2008-09-07 20:32     ` Randal L. Schwartz
2008-09-07 20:34       ` Lennart Borgman (gmail)
2008-09-07 20:38         ` Randal L. Schwartz
2008-09-07 20:42           ` Lennart Borgman (gmail)
2008-09-07 20:50             ` Randal L. Schwartz
2008-09-07 21:07               ` Lennart Borgman (gmail)
2008-09-08  6:39                 ` Ulrich Mueller
2008-09-08  7:07                   ` Lennart Borgman (gmail)
2008-09-07 21:10               ` Stefan Monnier
2008-09-07 23:30                 ` Jay Belanger
2008-09-08  0:50               ` Jason Rumney
2008-09-08  1:13             ` Randal L. Schwartz
2008-09-08  3:47               ` Stefan Monnier
2008-09-08  8:48                 ` Miles Bader
2008-09-08 12:59                   ` Stefan Monnier
2008-09-08 13:29                   ` martin rudalics
2008-09-08  7:26               ` Lennart Borgman (gmail)
2008-09-07 21:10           ` Stefan Monnier
2008-09-08 10:30       ` Carsten Dominik
2008-09-08 11:01         ` Lennart Borgman
2008-09-08 20:33           ` Carsten Dominik
2008-09-08 20:39             ` Lennart Borgman (gmail)
2008-09-08 20:43               ` Randal L. Schwartz
2008-09-08 20:53                 ` Lennart Borgman (gmail)
2008-09-08 22:59                   ` bug#914: " Jay Belanger
2008-09-08 23:44                     ` Lennart Borgman (gmail)
2008-09-09 13:28                     ` Stefan Monnier
2008-09-09 14:36                       ` Francis Litterio
2008-09-09 16:26                         ` Ulrich Mueller
2008-09-09 16:41                           ` Lennart Borgman (gmail)
2008-09-30  4:10                         ` Leo
2008-09-08 20:53                 ` Lennart Borgman (gmail) [this message]
2008-09-08 21:42                 ` Stefan Monnier
2008-09-09  8:11                 ` Richard M. Stallman
2008-09-09 13:26                   ` Stefan Monnier
2008-09-09 17:03                     ` Lennart Borgman (gmail)
2008-09-09 17:19                       ` Stefan Monnier
2008-09-08 13:01         ` Stefan Monnier
2008-09-07 20:35     ` Jay Belanger
2008-09-07 21:15       ` Stefan Monnier
2008-09-07 21:19         ` Lennart Borgman (gmail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='48C590E2.4040804__33761.1359930181$1220908291$gmane$org@gmail.com' \
    --to=lennart.borgman@gmail.com \
    --cc=914@emacsbugs.donarmstrong.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=merlyn@stonehenge.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.