GNU bug report logs - #66433
30.0.50; Update astronomial length units in Calc

Previous Next

Package: emacs;

Reported by: Ulrich Müller <ulm <at> gentoo.org>

Date: Tue, 10 Oct 2023 10:11:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Ulrich Mueller <ulm <at> gentoo.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66433 in the body.
You can then email your comments to 66433 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#66433; Package emacs. (Tue, 10 Oct 2023 10:11:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Ulrich Müller <ulm <at> gentoo.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 10 Oct 2023 10:11:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Müller <ulm <at> gentoo.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; Update astronomial length units in Calc
Date: Tue, 10 Oct 2023 12:09:39 +0200
OK to merge this to master?

From 44fcab5b4ec5e1175dd03e7c1b92e577ec689189 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
Date: Tue, 10 Oct 2023 11:58:03 +0200
Subject: [PATCH] Update astronomical length units in Calc

* lisp/calc/calc-units.el (math-standard-units): Update the
astronomical unit and the parsec, using their definitions by the
International Astronomical Union.
---
 lisp/calc/calc-units.el | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el
index 988fef2fcd2..96cf0840d15 100644
--- a/lisp/calc/calc-units.el
+++ b/lisp/calc/calc-units.el
@@ -57,12 +57,14 @@ math-standard-units
     ( ft      "12 in"                "Foot")
     ( yd      "3 ft"                 "Yard" )
     ( mi      "5280 ft"              "Mile" )
-    ( au      "149597870691. m"      "Astronomical Unit" nil
-              "149597870691 m (*)")
-              ;; (approx) NASA JPL (https://neo.jpl.nasa.gov/glossary/au.html)
+    ( au      "149597870700. m"      "Astronomical Unit" nil
+              "149597870700 m")
+              ;; "149 597 870 700 m exactly"
+              ;; http://www.iau.org/static/resolutions/IAU2012_English.pdf
     ( lyr     "c yr"                 "Light Year" )
-    ( pc      "3.0856775854*10^16 m" "Parsec  (**)" nil
-              "3.0856775854 10^16 m (*)") ;; (approx) ESUWM
+    ( pc      "(648000/pi) au"       "Parsec (**)")
+              ;; "The parsec is defined as exactly (648 000/π) au"
+              ;; http://www.iau.org/static/resolutions/IAU2015_English.pdf
     ( nmi     "1852 m"               "Nautical Mile" )
     ( fath    "6 ft"                 "Fathom" )
     ( fur     "660 ft"               "Furlong")
-- 
2.42.0





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66433; Package emacs. (Tue, 10 Oct 2023 12:17:01 GMT) Full text and rfc822 format available.

Message #8 received at 66433 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ulrich Müller <ulm <at> gentoo.org>
Cc: 66433 <at> debbugs.gnu.org
Subject: Re: bug#66433: 30.0.50; Update astronomial length units in Calc
Date: Tue, 10 Oct 2023 15:16:12 +0300
> From: Ulrich Müller <ulm <at> gentoo.org>
> Date: Tue, 10 Oct 2023 12:09:39 +0200
> 
> OK to merge this to master?
> 
> >From 44fcab5b4ec5e1175dd03e7c1b92e577ec689189 Mon Sep 17 00:00:00 2001
> From: =?UTF-8?q?Ulrich=20M=C3=BCller?= <ulm <at> gentoo.org>
> Date: Tue, 10 Oct 2023 11:58:03 +0200
> Subject: [PATCH] Update astronomical length units in Calc
> 
> * lisp/calc/calc-units.el (math-standard-units): Update the
> astronomical unit and the parsec, using their definitions by the
> International Astronomical Union.

Yes, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66433; Package emacs. (Tue, 10 Oct 2023 12:30:02 GMT) Full text and rfc822 format available.

Message #11 received at 66433 <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Ulrich Müller <ulm <at> gentoo.org>
Cc: 66433 <at> debbugs.gnu.org
Subject: bug#66433: 30.0.50; Update astronomial length units in Calc
Date: Tue, 10 Oct 2023 14:29:14 +0200
> -    ( au      "149597870691. m"      "Astronomical Unit" nil
> -              "149597870691 m (*)")
> -              ;; (approx) NASA JPL (https://neo.jpl.nasa.gov/glossary/au.html)
> +    ( au      "149597870700. m"      "Astronomical Unit" nil

Other units with exact definitions don't seem to use floats, so perhaps the dot should go?

> +              "149597870700 m")
> +              ;; "149 597 870 700 m exactly"
> +              ;; http://www.iau.org/static/resolutions/IAU2012_English.pdf





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66433; Package emacs. (Tue, 10 Oct 2023 13:03:01 GMT) Full text and rfc822 format available.

Message #14 received at 66433 <at> debbugs.gnu.org (full text, mbox):

From: Ulrich Mueller <ulm <at> gentoo.org>
To: Mattias Engdegård <mattias.engdegard <at> gmail.com>
Cc: 66433 <at> debbugs.gnu.org
Subject: Re: bug#66433: 30.0.50; Update astronomial length units in Calc
Date: Tue, 10 Oct 2023 15:02:09 +0200
>>>>> On Tue, 10 Oct 2023, Mattias Engdegård wrote:

>> -    ( au      "149597870691. m"      "Astronomical Unit" nil
>> -              "149597870691 m (*)")
>> -              ;; (approx) NASA JPL (https://neo.jpl.nasa.gov/glossary/au.html)
>> +    ( au      "149597870700. m"      "Astronomical Unit" nil

> Other units with exact definitions don't seem to use floats, so
> perhaps the dot should go?

Good point. Commit updated and merged.

>> +              "149597870700 m")
>> +              ;; "149 597 870 700 m exactly"
>> +              ;; http://www.iau.org/static/resolutions/IAU2012_English.pdf




bug marked as fixed in version 30.1, send any further explanations to 66433 <at> debbugs.gnu.org and Ulrich Müller <ulm <at> gentoo.org> Request was from Ulrich Mueller <ulm <at> gentoo.org> to control <at> debbugs.gnu.org. (Tue, 10 Oct 2023 13:06:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66433; Package emacs. (Tue, 10 Oct 2023 13:36:02 GMT) Full text and rfc822 format available.

Message #19 received at 66433 <at> debbugs.gnu.org (full text, mbox):

From: Mattias Engdegård <mattias.engdegard <at> gmail.com>
To: Ulrich Mueller <ulm <at> gentoo.org>
Cc: 66433 <at> debbugs.gnu.org
Subject: Re: bug#66433: 30.0.50; Update astronomial length units in Calc
Date: Tue, 10 Oct 2023 15:35:00 +0200
10 okt. 2023 kl. 15.02 skrev Ulrich Mueller <ulm <at> gentoo.org>:

>> Other units with exact definitions don't seem to use floats, so
>> perhaps the dot should go?
> 
> Good point. Commit updated and merged.

Excellent, and thank you for doing this!





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 08 Nov 2023 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 302 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.