From: Jay Belanger <jay.p.belanger@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 13580@debbugs.gnu.org
Subject: bug#13580: 24.2.92; regression in calc-convert-units
Date: Fri, 08 Feb 2013 08:30:43 -0600 [thread overview]
Message-ID: <87k3qi514c.fsf@gmail.com> (raw)
In-Reply-To: <83haln8ars.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 08 Feb 2013 10:33:59 +0200")
>> I've been consistently talking about units, not dimensions; I have given
>> no interpretation of "dimensions" vs "units". The expression above has
>> no units when simplified; that's a pretty straightforward statement.
>
> He is talking about this (see
> http://en.wikipedia.org/wiki/Dimensionless_quantity):
I've indicated that I know what dimensionless means; I've been
consistently talking about unitless because that's what
calc-convert-units works with. Whether something is dimensionless or
not is irrelevant to Calc.
> Therefore, "dimensionless" and "unitless" is not the same,
That's pretty much a direct quote of what I said before.
> IOW, removing dimensions of an expression as part of simplifying it
> might sometimes lose information. E.g., dividing the length of a
> circular arc by its radius will give you m/m, but the natural units of
> this are radians or degrees, not lack of units, and talking about
> "unitless" in this case might make little sense to a user who _knows_
> she is computing an angle.
Sure, but if a user asks Calc to work with m/m, the classic Calc
behavior was for Calc to ask for a new unit, then basically ignore it
and cancel the units. If the user put in "3 m/m", "New units: rad", the
result would not be "3", not "3 rad". (Behind the scenes the new unit
would be introduced but then disappear.) It ended up just simplifying
the units. Asking for unused information seems like a bug. This was
changed so that it wouldn't ask for the essentially unused information.
Since Calc then acts without informing the user, I added information and
allowed the user to treat the expression as unitless. That is the way I
would like to use it. But it seems like there are two reasonable
behaviors when the units cancel:
(1) Simplify the expression. (The 24 branch behavior.)
(2) Treat it like a unitless expression. (The trunk behavior.)
Changing from the classic behavior to (1) was fixing a bug; when I heard
a complaint about the lack of information that (1) provided, I changed
to (2).
Perhaps Calc should stick to (1), and let the user deal with the
simplified expression.
Or: What do you suggest?
next prev parent reply other threads:[~2013-02-08 14:30 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-28 22:24 bug#13580: 24.2.92; regression in calc-convert-units Roland Winkler
2013-01-29 1:10 ` Jay Belanger
2013-01-29 2:55 ` Jay Belanger
2013-01-30 14:20 ` Jay Belanger
2013-02-07 17:38 ` Roland Winkler
2013-02-07 19:53 ` Jay Belanger
2013-02-07 20:11 ` Roland Winkler
2013-02-07 20:18 ` Jay Belanger
2013-02-07 20:23 ` Roland Winkler
2013-02-07 20:33 ` Jay Belanger
[not found] ` <87pq0bn9st.fsf@gmail.com>
2013-02-07 20:40 ` Glenn Morris
2013-02-08 1:29 ` Jay Belanger
2013-02-08 1:51 ` Glenn Morris
2013-02-07 20:24 ` Roland Winkler
2013-02-07 20:39 ` Jay Belanger
2013-02-07 20:55 ` Roland Winkler
2013-02-07 21:11 ` Jay Belanger
2013-02-08 8:33 ` Eli Zaretskii
2013-02-08 14:30 ` Jay Belanger [this message]
2013-02-08 14:49 ` Eli Zaretskii
2013-02-08 14:56 ` Jay Belanger
2013-02-09 4:57 ` Roland Winkler
2013-02-09 15:08 ` Jay Belanger
2013-02-09 16:14 ` Roland Winkler
2013-02-09 23:49 ` Jay Belanger
2013-02-10 0:19 ` Roland Winkler
2013-02-10 0:41 ` Jay Belanger
2013-02-08 15:41 ` Jay Belanger
[not found] ` <87d2wb3k4e.fsf@gmail.com>
2013-02-07 21:19 ` Roland Winkler
2013-02-08 8:21 ` Eli Zaretskii
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=87k3qi514c.fsf@gmail.com \
--to=jay.p.belanger@gmail.com \
--cc=13580@debbugs.gnu.org \
--cc=eliz@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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).