This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

units


Hi everybody,

if you don't know what I am talking about below you probably don't
care...

GSL relies on (emacs) calc for the generation of it's constant header
files.  calc uses some pretty old constants in it's calculations.  So
I updated calc to use CODATA 1998 data and updated a few more
conversion factors.
I submitted that patch to the author of calc and hope we get a new
version soon.

Anyway we might go ahead and use the updated version of calc for the
generation of GSL headers right away. This would make the constants in
GSL more appropriate.  On the other hand it might cause problems
because of interference/discrepancies between old-calc and new-calc
versions of GSL.

It is relatively straightforward to get an locally updated GSL version
-- patch your calc, regenerate the GSL constants headers,
compile and install GSL...

So I attach the patch and we see what you guys wanna do with it.  

It would be great if someone could check the values and make sure I
didn't put in anything wrong (more eyes see better:).  All references
are given in the code.

Greetings,
Jochen
-- 
Einigkeit und Recht und Freiheit                http://www.Jochen-Kuepper.de
    Liberté, Égalité, Fraternité                GnuPG key: 44BCCD8E
        Sex, drugs and rock-n-roll
--- calc-units.el	Sun Dec 15 23:50:44 1996
+++ /usr/local/lib/xemacs/xemacs-packages/lisp/calc/calc-units.el	Thu Apr  4 00:35:37 2002
@@ -390,6 +390,12 @@
 
 ;;; Units table last updated 9-Jan-91 by Ulrich Mueller (ulm@vsnhd1.cern.ch)
 ;;; with some additions by Przemek Klosowski (przemek@rrdstrad.nist.gov)
+;;; Updated April 2002 by Jochen K"upper
+
+;;; for CODATA 1998 see one of
+;;; - 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
 
 (defvar math-standard-units
   '( ;; Length
@@ -398,7 +404,7 @@
      ( ft      "12 in"		     "Foot" )
      ( yd      "3 ft"		     "Yard" )
      ( mi      "5280 ft"	     "Mile" )
-     ( au      "1.495979e11 m"       "Astronomical Unit" )
+     ( au      "149597870691 m"      "Astronomical Unit" ) ;; NASA JPL (http://neo.jpl.nasa.gov/glossary/au.html)
      ( lyr     "9460536207068016 m"  "Light Year" )
      ( pc      "206264.80625 au"     "Parsec" )
      ( nmi     "1852 m"		     "Nautical Mile" )
@@ -461,7 +467,7 @@
      ( lbt     "12 ozt"		     "Troy pound" )
      ( ozt     "31.103475 g"	     "Troy ounce" )
      ( ct      ".2 g"		     "Carat" )
-     ( amu     "1.6605402e-24 g"     "Unified atomic mass" )
+     ( amu     "1.66053873e-27 kg"   "Unified atomic mass" ) ;; CODATA 1998
 
      ;; Force
      ( N       "m kg/s^2"	     "*Newton" )
@@ -484,9 +490,8 @@
      ( men     "100/invcm"	     "Inverse energy in meters" )
      ( Hzen    "h Hz"		     "Energy in Hertz")
      ( Ken     "k K"		     "Energy in Kelvins")
-     ;; ( invcm   "eV / 8065.47835185"    "Energy in inverse centimeters" )
-     ;; ( Hzen    "eV / 2.41796958004e14" "Energy in Hertz")
-     ;; ( Ken     "eV / 11604.7967327"    "Energy in Kelvins")
+     ( Wh      "W h"                 "Watt hour")
+     ( Ws      "W s"                 "Watt second")
 
      ;; Power
      ( W       "J/s"		     "*Watt" )
@@ -505,10 +510,10 @@
      ( Pa      "N/m^2"		     "*Pascal" )
      ( bar     "1e5 Pa"		     "Bar" )
      ( atm     "101325 Pa"	     "Standard atmosphere" )
-     ( torr    "atm/760"	     "Torr" )
+     ( torr    " 1.333224 Pa"	     "Torr" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
      ( mHg     "1000 torr"	     "Meter of mercury" )
      ( inHg    "25.4 mmHg"	     "Inch of mercury" )
-     ( inH2O   "248.84 Pa"	     "Inch of water" )
+     ( inH2O   "2.490889e2 Pa"	     "Inch of water" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
      ( psi     "6894.75729317 Pa"    "Pound per square inch" )
 
      ;; Viscosity
@@ -519,8 +524,8 @@
      ( A       nil                   "*Ampere" )
      ( C       "A s"		     "Coulomb" )
      ( Fdy     "ech Nav"  	     "Faraday" )
-     ( e       "1.60217733e-19 C"    "Elementary charge" )
-     ( ech     "1.60217733e-19 C"    "Elementary charge" )
+     ( e       "1.602176462e-19 C"   "Elementary charge" ) ;; CODATA 1998
+     ( ech     "1.602176462e-19 C"   "Elementary charge" ) ;; CODATA 1998
      ( V       "W/A"		     "Volt" )
      ( ohm     "V/A"		     "Ohm" )
      ( mho     "A/V"		     "Mho" )
@@ -537,9 +542,9 @@
      ( lm      "cd sr"		     "Lumen" )
      ( lx      "lm/m^2"		     "Lux" )
      ( ph      "1e4 lx"		     "Phot" )
-     ( fc      "10.76 lx"	     "Footcandle" )
+     ( fc      "10.76391 lx"	     "Footcandle" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
      ( lam     "1e4 lm/m^2"	     "Lambert" )
-     ( flam    "1.07639104e-3 lam"   "Footlambert" )
+     ( flam    "3.426259 cd/m^2"     "Footlambert" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
 
      ;; Radioactivity
      ( Bq      "1/s"  		     "*Becquerel" )
@@ -566,25 +571,25 @@
      ;; Solid angle
      ( sr      nil		     "*Steradian" )
 
-     ;; Other physical quantities (Physics Letters B239, 1 (1990))
-     ( h       "6.6260755e-34 J s"   "*Planck's constant" )
-     ( hbar    "h / 2 pi"	     "Planck's constant" )
-     ( mu0     "4 pi 1e-7 H/m"       "Permeability of vacuum" )
-     ( Grav    "6.67259e-11 N m^2/kg^2"  "Gravitational constant" )
-     ( Nav     "6.0221367e23 / mol"  "Avagadro's constant" )
-     ( me      "0.51099906 MeV/c^2"  "Electron rest mass" )
-     ( mp      "1.007276470 amu"     "Proton rest mass" )
-     ( mn      "1.008664904 amu"     "Neutron rest mass" )
-     ( mu      "0.113428913 amu"     "Muon rest mass" )
-     ( Ryd     "1.0973731571e5 invcm" "Rydberg's constant" )
-     ( k       "1.3806513e-23 J/K"   "Boltzmann's constant" )
-     ( fsc     "1 / 137.0359895"     "Fine structure constant" )
-     ( muB     "5.78838263e-11 MeV/T"  "Bohr magneton" )
-     ( muN     "3.15245166e-14 MeV/T"  "Nuclear magneton" )
-     ( mue     "1.001159652193 muB"  "Electron magnetic moment" )
-     ( mup     "2.792847386 muN"     "Proton magnetic moment" )
-     ( R0      "Nav k"               "Molar gas constant" )
-     ( V0      "22.413992 L/mol"     "Standard volume of ideal gas" )
+     ;; Other physical quantities (CODATA 1998)
+     ( h       "6.62606876e-34 J s"     "*Planck's constant" )
+     ( 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" )
+     ( Nav     "6.02214199e23 / mol"    "Avagadro's constant" )
+     ( me      "9.10938188e-31 kg"      "Electron rest mass" )
+     ( 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 /m"     "Rydberg's constant" )
+     ( k       "1.3806503e-23 J/K"      "Boltzmann's constant" )
+     ( fsc     "7.297352533e-3"         "Fine structure constant" )
+     ( muB     "927.400899e-26 J/T"     "Bohr magneton" )
+     ( muN     "5.05078317e-27 J/T"     "Nuclear magneton" )
+     ( mue     "-928.476362e-26 J/T"    "Electron magnetic moment" )
+     ( mup     "1.410606633e-26 J/T"    "Proton magnetic moment" )
+     ( R0      "8.314472 J/mol/K"       "Molar gas constant" )
+     ( V0      "22.710981e-3 m^3/mol"   "Standard volume of ideal gas" )
 ))
 
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]