public inbox for gsl-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Jochen Küpper" <jochen@fhi-berlin.mpg.de>
To: Brian Gough <bjg@network-theory.co.uk>
Cc: gsl-discuss@sourceware.org
Subject: Re: constants update
Date: Thu, 10 Jan 2008 09:23:00 -0000	[thread overview]
Message-ID: <8A45541B-99EC-4628-93B2-7D37095C59C9@fhi-berlin.mpg.de> (raw)
In-Reply-To: <BDFB51B0-387A-4242-B737-346AD6CD0D80@fhi-berlin.mpg.de>


[-- Attachment #1.1: Type: text/plain, Size: 544 bytes --]

Brian,

On 10.01.2008, at 10:01, Jochen Küpper wrote:

> Therefore, someone needs to create a patch for calc-units- 
> update.el, i.e., as the following:


here is a patch to upgrade some (very few!) constants to CODATA 2006.
Hopefully this can also serve someone else as a guide to update more  
values in GSL.

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen- 
Kuepper.de
     Liberté, Égalité, Fraternité                GnuPG key: CC1B0B4D
         Sex, drugs and rock-n-roll




[-- Attachment #1.2: codata2006.diff --]
[-- Type: application/octet-stream, Size: 3004 bytes --]

Index: calc-units-update.el
===================================================================
RCS file: /cvs/gsl/gsl/const/calc-units-update.el,v
retrieving revision 1.5
diff -u -r1.5 calc-units-update.el
--- calc-units-update.el	2 Jul 2007 16:34:25 -0000	1.5
+++ calc-units-update.el	10 Jan 2008 09:15:56 -0000
@@ -1,6 +1,6 @@
 ;; calc-units-update.el -- update for calc-units.el, a calculator for Emacs
 ;;
-;; Copyright (C) 2002 Jochen Küpper
+;; Copyright (C) 2002,2008 Jochen Küpper
 ;;
 ;; This file is free software; you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published
@@ -17,6 +17,10 @@
 ;;   - Journal of Physical and Chemical Reference Data, 28(6), 1713-1852, 1999.
 ;;   - Reviews of Modern Physics, 72(2), 351-495, 2000.
 ;;   - http://physics.nist.gov/cuu/Constants/index.html
+;; * CODATA 2006
+;;   - http://arxiv.org/abs/0801.0028
+;;   - http://physics.nist.gov/cuu/Constants/
+;;   - http://www.physics.nist.gov/cuu/Constants/Table/allascii.txt
 ;; * NIST
 ;;   - http://physics.nist.gov/Pubs/SP811/appenB9.html
 ;; * NASA JPL
@@ -28,13 +32,13 @@
   '(;; length
     ( au      "149597870691. m"        "Astronomical Unit" ) ;; NASA JPL 
     ;; mass
-    ( amu     "1.66053873e-27 kg"      "Unified atomic mass" ) ;; CODATA
+    ( amu     "1.660538782e-27 kg"      "Unified atomic mass" ) ;; CODATA 2006 (1.660538782(83)e-27 kg)
     ;; pressure
     ( inH2O   "2.490889e2 Pa"          "Inch of water" ) ;; NIST 
-    ( e       "1.602176462e-19 C"      "Elementary charge" ) ;; CODATA
-    ( ech     "1.602176462e-19 C"      "Elementary charge" ) ;; CODATA
+    ( ech     "1.602176487e-19 C"      "Elementary charge" ) ;; CODATA 2006 (1.602176487(40)e-19 C)
+    ( e       "ech"                    "Elementary charge" )
     ;; other physical quantities (CODATA 1998)
-    ( h       "6.62606876e-34 J s"     "*Planck's constant" )
+    ( h       "6.62606896e-34 J s"     "*Planck's constant" ) ;; CODATA 2006 (6.62606896(33)e-34 J s)
     ( hbar    "h / 2 pi"               "Planck's constant" )
     ( mu0     "4 pi 1e-7 H/m"          "Permeability of vacuum" )
     ( Grav    "6.673e-11 m^3/kg^1/s^2" "Gravitational constant" )
@@ -43,8 +47,8 @@
     ( mp      "1.67262158e-27 kg"      "Proton rest mass" )
     ( mn      "1.67492716e-27 kg"      "Neutron rest mass" )
     ( mu      "1.88353109e-28 kg"      "Muon rest mass" )
-    ( Ryd     "10973731.568549 h c/m"  "Rydberg's constant (energy)" )
-    ( k       "1.3806503e-23 J/K"      "Boltzmann's constant" )
+    ( Ryd     "10973731.568527 h c/m"  "Rydberg's constant (energy)" ) ;; CODATA 2006 (10973731.568527(73) m-1)
+    ( k       "1.3806504e-23 J/K"      "Boltzmann's constant" ) ;; CODATA 2006 (1.3806504(24)e-23 J K-1)
     ( fsc     "7.297352533e-3"         "Fine structure constant" )
     ( muB     "927.400899e-26 J/T"     "Bohr magneton" )
     ( muN     "5.05078317e-27 J/T"     "Nuclear magneton" )

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 186 bytes --]

  reply	other threads:[~2008-01-10  9:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 17:07 Richard Mathar
2008-01-10  9:02 ` Jochen Küpper
2008-01-10  9:23   ` Jochen Küpper [this message]
2008-01-10 10:19     ` Oliver Jennrich
2008-01-10 11:21       ` Jochen Küpper
2008-01-10 12:39       ` Brian Gough
2008-01-10 22:22     ` Brian Gough
  -- strict thread matches above, loose matches on Subject: below --
2008-01-06 23:15 Jochen Küpper
2008-01-08 18:42 ` Brian Gough

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=8A45541B-99EC-4628-93B2-7D37095C59C9@fhi-berlin.mpg.de \
    --to=jochen@fhi-berlin.mpg.de \
    --cc=bjg@network-theory.co.uk \
    --cc=gsl-discuss@sourceware.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).