This is the mail archive of the gsl-discuss@sourceware.org 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]

update of Physical constants list


Starting from gsl 1.7 it makes sense to update the natural constants
of const/gsl_const_mksa.h and const/gsl_const_num.h according to
some recent NIST values as patched with 'diff -u' below.

Richard J. Mathar, http://www.strw.leidenuniv.nl/~mathar

--- gsl_const_mksa.h.org	2006-01-31 18:42:29.000000000 +0100
+++ gsl_const_mksa.h	2006-01-31 19:13:24.000000000 +0100
@@ -2,6 +2,8 @@
  * 
  * Copyright (C) 1996, 1997, 1998, 1999, 2000, 2004 Brian Gough
  * 
+ * Updated Jan 2006 according to NIST, http://www.physics.nist.gov/cuu/Constants/Table/allascii.txt
+ * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  * the Free Software Foundation; either version 2 of the License, or (at
@@ -21,24 +23,24 @@
 #define __GSL_CONST_MKSA__
 
 #define GSL_CONST_MKSA_SPEED_OF_LIGHT (2.99792458e8) /* m / s */
-#define GSL_CONST_MKSA_GRAVITATIONAL_CONSTANT (6.673e-11) /* m^3 / kg s^2 */
-#define GSL_CONST_MKSA_PLANCKS_CONSTANT_H (6.62606876e-34) /* kg m^2 / s */
-#define GSL_CONST_MKSA_PLANCKS_CONSTANT_HBAR (1.05457159642e-34) /* kg m^2 / s */
+#define GSL_CONST_MKSA_GRAVITATIONAL_CONSTANT (6.6742e-11) /* m^3 / kg s^2 */
+#define GSL_CONST_MKSA_PLANCKS_CONSTANT_H (6.6260693e-34) /* kg m^2 / s */
+#define GSL_CONST_MKSA_PLANCKS_CONSTANT_HBAR (1.05457168e-34) /* kg m^2 / s */
 #define GSL_CONST_MKSA_ASTRONOMICAL_UNIT (1.49597870691e11) /* m */
 #define GSL_CONST_MKSA_LIGHT_YEAR (9.46053620707e15) /* m */
 #define GSL_CONST_MKSA_PARSEC (3.08567758135e16) /* m */
 #define GSL_CONST_MKSA_GRAV_ACCEL (9.80665e0) /* m / s^2 */
-#define GSL_CONST_MKSA_ELECTRON_VOLT (1.602176462e-19) /* kg m^2 / s^2 */
-#define GSL_CONST_MKSA_MASS_ELECTRON (9.10938188e-31) /* kg */
-#define GSL_CONST_MKSA_MASS_MUON (1.88353109e-28) /* kg */
-#define GSL_CONST_MKSA_MASS_PROTON (1.67262158e-27) /* kg */
-#define GSL_CONST_MKSA_MASS_NEUTRON (1.67492716e-27) /* kg */
-#define GSL_CONST_MKSA_RYDBERG (2.17987190389e-18) /* kg m^2 / s^2 */
-#define GSL_CONST_MKSA_BOLTZMANN (1.3806503e-23) /* kg m^2 / K s^2 */
-#define GSL_CONST_MKSA_BOHR_MAGNETON (9.27400899e-24) /* A m^2 */
-#define GSL_CONST_MKSA_NUCLEAR_MAGNETON (5.05078317e-27) /* A m^2 */
-#define GSL_CONST_MKSA_ELECTRON_MAGNETIC_MOMENT (9.28476362e-24) /* A m^2 */
-#define GSL_CONST_MKSA_PROTON_MAGNETIC_MOMENT (1.410606633e-26) /* A m^2 */
+#define GSL_CONST_MKSA_ELECTRON_VOLT (1.60217653e-19) /* kg m^2 / s^2 */
+#define GSL_CONST_MKSA_MASS_ELECTRON (9.1093826e-31) /* kg */
+#define GSL_CONST_MKSA_MASS_MUON (1.88353140e-28) /* kg */
+#define GSL_CONST_MKSA_MASS_PROTON (1.67262171e-27) /* kg */
+#define GSL_CONST_MKSA_MASS_NEUTRON (1.67492728e-27) /* kg */
+#define GSL_CONST_MKSA_RYDBERG (2.17987209e-18) /* kg m^2 / s^2 */
+#define GSL_CONST_MKSA_BOLTZMANN (1.3806505e-23) /* kg m^2 / K s^2 */
+#define GSL_CONST_MKSA_BOHR_MAGNETON (9.27400949e-24) /* A m^2 */
+#define GSL_CONST_MKSA_NUCLEAR_MAGNETON (5.05078343e-27) /* A m^2 */
+#define GSL_CONST_MKSA_ELECTRON_MAGNETIC_MOMENT (9.28476412e-24) /* A m^2 */
+#define GSL_CONST_MKSA_PROTON_MAGNETIC_MOMENT (1.41060671e-26) /* A m^2 */
 #define GSL_CONST_MKSA_MOLAR_GAS (8.314472e0) /* kg m^2 / K mol s^2 */
 #define GSL_CONST_MKSA_STANDARD_GAS_VOLUME (2.2710981e-2) /* m^3 / mol */
 #define GSL_CONST_MKSA_MINUTE (6e1) /* s */
@@ -79,7 +81,7 @@
 #define GSL_CONST_MKSA_UK_TON (1.0160469088e3) /* kg */
 #define GSL_CONST_MKSA_TROY_OUNCE (3.1103475e-2) /* kg */
 #define GSL_CONST_MKSA_CARAT (2e-4) /* kg */
-#define GSL_CONST_MKSA_UNIFIED_ATOMIC_MASS (1.66053873e-27) /* kg */
+#define GSL_CONST_MKSA_UNIFIED_ATOMIC_MASS (1.66053886e-27) /* kg */
 #define GSL_CONST_MKSA_GRAM_FORCE (9.80665e-3) /* kg m / s^2 */
 #define GSL_CONST_MKSA_POUND_FORCE (4.44822161526e0) /* kg m / s^2 */
 #define GSL_CONST_MKSA_KILOPOUND_FORCE (4.44822161526e3) /* kg m / s^2 */
@@ -97,8 +99,8 @@
 #define GSL_CONST_MKSA_PSI (6.89475729317e3) /* kg / m s^2 */
 #define GSL_CONST_MKSA_POISE (1e-1) /* kg m^-1 s^-1 */
 #define GSL_CONST_MKSA_STOKES (1e-4) /* m^2 / s */
-#define GSL_CONST_MKSA_FARADAY (9.6485341472e4) /* A s / mol */
-#define GSL_CONST_MKSA_ELECTRON_CHARGE (1.602176462e-19) /* A s */
+#define GSL_CONST_MKSA_FARADAY (9.64853383e4) /* A s / mol */
+#define GSL_CONST_MKSA_ELECTRON_CHARGE (1.60217653e-19) /* A s */
 #define GSL_CONST_MKSA_GAUSS (1e-4) /* kg / A s^2 */
 #define GSL_CONST_MKSA_STILB (1e4) /* cd / m^2 */
 #define GSL_CONST_MKSA_LUMEN (1e0) /* cd sr */
@@ -111,13 +113,13 @@
 #define GSL_CONST_MKSA_ROENTGEN (2.58e-4) /* A s / kg */
 #define GSL_CONST_MKSA_RAD (1e-2) /* m^2 / s^2 */
 #define GSL_CONST_MKSA_SOLAR_MASS (1.98892e30) /* kg */
-#define GSL_CONST_MKSA_BOHR_RADIUS (5.291772083e-11) /* m */
+#define GSL_CONST_MKSA_BOHR_RADIUS (5.291772108e-11) /* m */
 #define GSL_CONST_MKSA_NEWTON (1e0) /* kg m / s^2 */
 #define GSL_CONST_MKSA_DYNE (1e-5) /* kg m / s^2 */
 #define GSL_CONST_MKSA_JOULE (1e0) /* kg m^2 / s^2 */
 #define GSL_CONST_MKSA_ERG (1e-7) /* kg m^2 / s^2 */
-#define GSL_CONST_MKSA_STEFAN_BOLTZMANN_CONSTANT (5.67039934436e-8) /* kg / K^4 s^3 */
-#define GSL_CONST_MKSA_THOMSON_CROSS_SECTION (6.65245853542e-29) /* m^2 */
+#define GSL_CONST_MKSA_STEFAN_BOLTZMANN_CONSTANT (5.670400e-8) /* kg / K^4 s^3 */
+#define GSL_CONST_MKSA_THOMSON_CROSS_SECTION (6.65245873e-29) /* m^2 */
 #define GSL_CONST_MKSA_VACUUM_PERMITTIVITY (8.854187817e-12) /* A^2 s^4 / kg m^3 */
 #define GSL_CONST_MKSA_VACUUM_PERMEABILITY (1.25663706144e-6) /* kg m / A^2 s^2 */
 
--- gsl_const_num.h.org	2006-01-31 18:36:58.000000000 +0100
+++ gsl_const_num.h	2006-01-31 18:42:16.000000000 +0100
@@ -1,6 +1,9 @@
 /* const/gsl_const_num.h
  * 
  * Copyright (C) 1996, 1997, 1998, 1999, 2000 Brian Gough
+ *
+ * Fine structure constant and Avogadro constant as of NIST, Jan 2006,
+ * http://www.physics.nist.gov/cgi-bin/cuu/Value?alph|search_for=atomnuc!
  * 
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -20,8 +23,8 @@
 #ifndef __GSL_CONST_NUM__
 #define __GSL_CONST_NUM__
 
-#define GSL_CONST_NUM_FINE_STRUCTURE (7.297352533e-3) /* 1 */
-#define GSL_CONST_NUM_AVOGADRO (6.02214199e23) /* 1 / mol */
+#define GSL_CONST_NUM_FINE_STRUCTURE (7.297352568e-3) /* 1 */
+#define GSL_CONST_NUM_AVOGADRO (6.022145e23) /* 1 / mol */
 #define GSL_CONST_NUM_YOTTA (1e24) /* 1 */
 #define GSL_CONST_NUM_ZETTA (1e21) /* 1 */
 #define GSL_CONST_NUM_EXA (1e18) /* 1 */


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