From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: Another question about Calc
Date: Fri, 09 Oct 2020 09:19:20 -0400 [thread overview]
Message-ID: <jwvv9fjlf0c.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: 874kn4p392.fsf@web.de
> I know Latex a bit, but never heard that it calculates...like that.
AFAIK LaTeX doesn't calculate at all. I don't see any evidence that it
treats `A + B / C` as having any kind of internal structure.
AFAICT it adjusts the spacing between the five elements only based on
"lexical" rather than "syntactical" information.
In the places where LaTeX does calculate (e.g. in lengths) it seems not
to support division and only support "multiplication by concatenation"
which makes multiplication bind more tightly than addition?
> Is this behavior expected? Does it make sense in some way?
I think the fact that the syntax is inspired by LaTeX doesn't give
us much guidance on how precedence should be handled.
So from where I stand, this looks like a bug.
Stefan
next prev parent reply other threads:[~2020-10-09 13:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-07 23:08 Two short questions about calc Michael Heerdegen
2020-09-08 2:26 ` Stefan Monnier
2020-09-30 23:52 ` Michael Heerdegen
2020-10-01 3:31 ` Stefan Monnier
2020-10-01 3:41 ` Michael Heerdegen
2020-09-08 7:52 ` tomas
2020-09-11 21:13 ` Michael Heerdegen
2020-10-09 2:00 ` Another question about Calc (was: Two short questions about calc) Michael Heerdegen
2020-10-09 13:19 ` Stefan Monnier [this message]
2020-10-10 6:39 ` Another question about Calc Michael Heerdegen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvv9fjlf0c.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).