unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Error in the units conversion in calc-embedded
@ 2024-02-25 10:58 Kepa via Users list for the GNU Emacs text editor
  2024-02-26  2:21 ` Michael Heerdegen via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 3+ messages in thread
From: Kepa via Users list for the GNU Emacs text editor @ 2024-02-25 10:58 UTC (permalink / raw)
  To: help-gnu-emacs

I try to simplify units to m^3/hr:

3 m^3 / s + 70 m^3 / hr

1. M-x calc-embedded
2. u c
     - Old units: m^3/s
     - New utis: m^3/hr

Result is OK, but units are wrong:

10870. m^3 / s


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error in the units conversion in calc-embedded
  2024-02-25 10:58 Error in the units conversion in calc-embedded Kepa via Users list for the GNU Emacs text editor
@ 2024-02-26  2:21 ` Michael Heerdegen via Users list for the GNU Emacs text editor
  2024-02-28  5:49   ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen via Users list for the GNU Emacs text editor @ 2024-02-26  2:21 UTC (permalink / raw)
  To: help-gnu-emacs

Kepa via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> I try to simplify units to m^3/hr:
>
> 3 m^3 / s + 70 m^3 / hr
>
> 1. M-x calc-embedded
> 2. u c
>     - Old units: m^3/s
>     - New utis: m^3/hr
>
> Result is OK, but units are wrong:
>
> 10870. m^3 / s

Hmm - the correct result 10870 m^3 / hr - so the result from Calc is
mathematically wrong.  calc-embedded is not related, this happens in
"standard" Calc also.

Could you please make a bug report?

BTW, you should get the correct result when you first simplify units (u
s) and convert afterwards.  Unit conversion seems to get confused
when the expression is a sum of summands in different units.


TIA,

Michael.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Error in the units conversion in calc-embedded
  2024-02-26  2:21 ` Michael Heerdegen via Users list for the GNU Emacs text editor
@ 2024-02-28  5:49   ` Michael Heerdegen
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Heerdegen @ 2024-02-28  5:49 UTC (permalink / raw)
  To: Michael Heerdegen via Users list for the GNU Emacs text editor

Michael Heerdegen via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> Could you please make a bug report?

Done.

Michael.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-02-28  5:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-25 10:58 Error in the units conversion in calc-embedded Kepa via Users list for the GNU Emacs text editor
2024-02-26  2:21 ` Michael Heerdegen via Users list for the GNU Emacs text editor
2024-02-28  5:49   ` Michael Heerdegen

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).