aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Walters2002-05-14 18:49:33 +0000
committerColin Walters2002-05-14 18:49:33 +0000
commitbe59410cd4ba7bc7d4309a1af6ec277e7057013c (patch)
tree3157a37d7fe1ed9c5d1ffe70d4c1a126e95bb8de
parentb54f4255b32057fbc9dc8729a4955a9454787b3e (diff)
downloademacs-be59410cd4ba7bc7d4309a1af6ec277e7057013c.tar.gz
emacs-be59410cd4ba7bc7d4309a1af6ec277e7057013c.zip
(math-standard-units): Update from CODATA.
-rw-r--r--lisp/calc/calc-units.el385
1 files changed, 197 insertions, 188 deletions
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el
index c86b53c86e6..54f6fad7504 100644
--- a/lisp/calc/calc-units.el
+++ b/lisp/calc/calc-units.el
@@ -37,201 +37,206 @@
37 37
38;;; Units table last updated 9-Jan-91 by Ulrich Mueller (ulm@vsnhd1.cern.ch) 38;;; Units table last updated 9-Jan-91 by Ulrich Mueller (ulm@vsnhd1.cern.ch)
39;;; with some additions by Przemek Klosowski (przemek@rrdstrad.nist.gov) 39;;; with some additions by Przemek Klosowski (przemek@rrdstrad.nist.gov)
40;;; Updated April 2002 by Jochen Küpper
41
42;;; for CODATA 1998 see one of
43;;; - Journal of Physical and Chemical Reference Data, 28(6), 1713-1852, 1999.
44;;; - Reviews of Modern Physics, 72(2), 351-495, 2000.
45;;; - http://physics.nist.gov/cuu/Constants/index.html
40 46
41(defvar math-standard-units 47(defvar math-standard-units
42 '( ;; Length 48 '( ;; Length
43 ( m nil "*Meter" ) 49 ( m nil "*Meter" )
44 ( in "2.54 cm" "Inch" ) 50 ( in "2.54 cm" "Inch" )
45 ( ft "12 in" "Foot" ) 51 ( ft "12 in" "Foot" )
46 ( yd "3 ft" "Yard" ) 52 ( yd "3 ft" "Yard" )
47 ( mi "5280 ft" "Mile" ) 53 ( mi "5280 ft" "Mile" )
48 ( au "1.495979e11 m" "Astronomical Unit" ) 54 ( au "149597870691 m" "Astronomical Unit" ) ;; NASA JPL (http://neo.jpl.nasa.gov/glossary/au.html)
49 ( lyr "9460536207068016 m" "Light Year" ) 55 ( lyr "9460536207068016 m" "Light Year" )
50 ( pc "206264.80625 au" "Parsec" ) 56 ( pc "206264.80625 au" "Parsec" )
51 ( nmi "1852 m" "Nautical Mile" ) 57 ( nmi "1852 m" "Nautical Mile" )
52 ( fath "6 ft" "Fathom" ) 58 ( fath "6 ft" "Fathom" )
53 ( u "1 um" "Micron" ) 59 ( u "1 um" "Micron" )
54 ( mil "in/1000" "Mil" ) 60 ( mil "in/1000" "Mil" )
55 ( point "in/72" "Point (1/72 inch)" ) 61 ( point "in/72" "Point (1/72 inch)" )
56 ( tpt "in/72.27" "Point (TeX conventions)" ) 62 ( tpt "in/72.27" "Point (TeX conventions)" )
57 ( Ang "1e-10 m" "Angstrom" ) 63 ( Ang "1e-10 m" "Angstrom" )
58 ( mfi "mi+ft+in" "Miles + feet + inches" ) 64 ( mfi "mi+ft+in" "Miles + feet + inches" )
59 65
60 ;; Area 66 ;; Area
61 ( hect "10000 m^2" "*Hectare" ) 67 ( hect "10000 m^2" "*Hectare" )
62 ( acre "mi^2 / 640" "Acre" ) 68 ( acre "mi^2 / 640" "Acre" )
63 ( b "1e-28 m^2" "Barn" ) 69 ( b "1e-28 m^2" "Barn" )
64 70
65 ;; Volume 71 ;; Volume
66 ( l "1e-3 m^3" "*Liter" ) 72 ( l "1e-3 m^3" "*Liter" )
67 ( L "1e-3 m^3" "Liter" ) 73 ( L "1e-3 m^3" "Liter" )
68 ( gal "4 qt" "US Gallon" ) 74 ( gal "4 qt" "US Gallon" )
69 ( qt "2 pt" "Quart" ) 75 ( qt "2 pt" "Quart" )
70 ( pt "2 cup" "Pint" ) 76 ( pt "2 cup" "Pint" )
71 ( cup "8 ozfl" "Cup" ) 77 ( cup "8 ozfl" "Cup" )
72 ( ozfl "2 tbsp" "Fluid Ounce" ) 78 ( ozfl "2 tbsp" "Fluid Ounce" )
73 ( floz "2 tbsp" "Fluid Ounce" ) 79 ( floz "2 tbsp" "Fluid Ounce" )
74 ( tbsp "3 tsp" "Tablespoon" ) 80 ( tbsp "3 tsp" "Tablespoon" )
75 ( tsp "4.92892159375 ml" "Teaspoon" ) 81 ( tsp "4.92892159375 ml" "Teaspoon" )
76 ( vol "tsp+tbsp+ozfl+cup+pt+qt+gal" "Gallons + ... + teaspoons" ) 82 ( vol "tsp+tbsp+ozfl+cup+pt+qt+gal" "Gallons + ... + teaspoons" )
77 ( galC "4.54609 l" "Canadian Gallon" ) 83 ( galC "4.54609 l" "Canadian Gallon" )
78 ( galUK "4.546092 l" "UK Gallon" ) 84 ( galUK "4.546092 l" "UK Gallon" )
79 85
80 ;; Time 86 ;; Time
81 ( s nil "*Second" ) 87 ( s nil "*Second" )
82 ( sec "s" "Second" ) 88 ( sec "s" "Second" )
83 ( min "60 s" "Minute" ) 89 ( min "60 s" "Minute" )
84 ( hr "60 min" "Hour" ) 90 ( hr "60 min" "Hour" )
85 ( day "24 hr" "Day" ) 91 ( day "24 hr" "Day" )
86 ( wk "7 day" "Week" ) 92 ( wk "7 day" "Week" )
87 ( hms "wk+day+hr+min+s" "Hours, minutes, seconds" ) 93 ( hms "wk+day+hr+min+s" "Hours, minutes, seconds" )
88 ( yr "365.25 day" "Year" ) 94 ( yr "365.25 day" "Year" )
89 ( Hz "1/s" "Hertz" ) 95 ( Hz "1/s" "Hertz" )
90 96
91 ;; Speed 97 ;; Speed
92 ( mph "mi/hr" "*Miles per hour" ) 98 ( mph "mi/hr" "*Miles per hour" )
93 ( kph "km/hr" "Kilometers per hour" ) 99 ( kph "km/hr" "Kilometers per hour" )
94 ( knot "nmi/hr" "Knot" ) 100 ( knot "nmi/hr" "Knot" )
95 ( c "2.99792458e8 m/s" "Speed of light" ) 101 ( c "2.99792458e8 m/s" "Speed of light" )
96 102
97 ;; Acceleration 103 ;; Acceleration
98 ( ga "9.80665 m/s^2" "*\"g\" acceleration" ) 104 ( ga "9.80665 m/s^2" "*\"g\" acceleration" )
99 105
100 ;; Mass 106 ;; Mass
101 ( g nil "*Gram" ) 107 ( g nil "*Gram" )
102 ( lb "16 oz" "Pound (mass)" ) 108 ( lb "16 oz" "Pound (mass)" )
103 ( oz "28.349523125 g" "Ounce (mass)" ) 109 ( oz "28.349523125 g" "Ounce (mass)" )
104 ( ton "2000 lb" "Ton" ) 110 ( ton "2000 lb" "Ton" )
105 ( tpo "ton+lb+oz" "Tons + pounds + ounces (mass)" ) 111 ( tpo "ton+lb+oz" "Tons + pounds + ounces (mass)" )
106 ( t "1000 kg" "Metric ton" ) 112 ( t "1000 kg" "Metric ton" )
107 ( tonUK "1016.0469088 kg" "UK ton" ) 113 ( tonUK "1016.0469088 kg" "UK ton" )
108 ( lbt "12 ozt" "Troy pound" ) 114 ( lbt "12 ozt" "Troy pound" )
109 ( ozt "31.103475 g" "Troy ounce" ) 115 ( ozt "31.103475 g" "Troy ounce" )
110 ( ct ".2 g" "Carat" ) 116 ( ct ".2 g" "Carat" )
111 ( amu "1.6605402e-24 g" "Unified atomic mass" ) 117 ( amu "1.66053873e-27 kg" "Unified atomic mass" ) ;; CODATA 1998
112 118
113 ;; Force 119 ;; Force
114 ( N "m kg/s^2" "*Newton" ) 120 ( N "m kg/s^2" "*Newton" )
115 ( dyn "1e-5 N" "Dyne" ) 121 ( dyn "1e-5 N" "Dyne" )
116 ( gf "ga g" "Gram (force)" ) 122 ( gf "ga g" "Gram (force)" )
117 ( lbf "4.44822161526 N" "Pound (force)" ) 123 ( lbf "4.44822161526 N" "Pound (force)" )
118 ( kip "1000 lbf" "Kilopound (force)" ) 124 ( kip "1000 lbf" "Kilopound (force)" )
119 ( pdl "0.138255 N" "Poundal" ) 125 ( pdl "0.138255 N" "Poundal" )
120 126
121 ;; Energy 127 ;; Energy
122 ( J "N m" "*Joule" ) 128 ( J "N m" "*Joule" )
123 ( erg "1e-7 J" "Erg" ) 129 ( erg "1e-7 J" "Erg" )
124 ( cal "4.1868 J" "International Table Calorie" ) 130 ( cal "4.1868 J" "International Table Calorie" )
125 ( Btu "1055.05585262 J" "International Table Btu" ) 131 ( Btu "1055.05585262 J" "International Table Btu" )
126 ( eV "ech V" "Electron volt" ) 132 ( eV "ech V" "Electron volt" )
127 ( ev "eV" "Electron volt" ) 133 ( ev "eV" "Electron volt" )
128 ( therm "105506000 J" "EEC therm" ) 134 ( therm "105506000 J" "EEC therm" )
129 ( invcm "h c/cm" "Energy in inverse centimeters" ) 135 ( invcm "h c/cm" "Energy in inverse centimeters" )
130 ( Kayser "invcm" "Kayser (inverse centimeter energy)" ) 136 ( Kayser "invcm" "Kayser (inverse centimeter energy)" )
131 ( men "100/invcm" "Inverse energy in meters" ) 137 ( men "100/invcm" "Inverse energy in meters" )
132 ( Hzen "h Hz" "Energy in Hertz") 138 ( Hzen "h Hz" "Energy in Hertz")
133 ( Ken "k K" "Energy in Kelvins") 139 ( Ken "k K" "Energy in Kelvins")
134 ;; ( invcm "eV / 8065.47835185" "Energy in inverse centimeters" ) 140 ( Wh "W h" "Watt hour")
135 ;; ( Hzen "eV / 2.41796958004e14" "Energy in Hertz") 141 ( Ws "W s" "Watt second")
136 ;; ( Ken "eV / 11604.7967327" "Energy in Kelvins") 142
137 143 ;; Power
138 ;; Power 144 ( W "J/s" "*Watt" )
139 ( W "J/s" "*Watt" ) 145 ( hp "745.7 W" "Horsepower" )
140 ( hp "745.7 W" "Horsepower" ) 146
141 147 ;; Temperature
142 ;; Temperature 148 ( K nil "*Degree Kelvin" K )
143 ( K nil "*Degree Kelvin" K ) 149 ( dK "K" "Degree Kelvin" K )
144 ( dK "K" "Degree Kelvin" K ) 150 ( degK "K" "Degree Kelvin" K )
145 ( degK "K" "Degree Kelvin" K ) 151 ( dC "K" "Degree Celsius" C )
146 ( dC "K" "Degree Celsius" C ) 152 ( degC "K" "Degree Celsius" C )
147 ( degC "K" "Degree Celsius" C ) 153 ( dF "(5/9) K" "Degree Fahrenheit" F )
148 ( dF "(5/9) K" "Degree Fahrenheit" F ) 154 ( degF "(5/9) K" "Degree Fahrenheit" F )
149 ( degF "(5/9) K" "Degree Fahrenheit" F ) 155
150 156 ;; Pressure
151 ;; Pressure 157 ( Pa "N/m^2" "*Pascal" )
152 ( Pa "N/m^2" "*Pascal" ) 158 ( bar "1e5 Pa" "Bar" )
153 ( bar "1e5 Pa" "Bar" ) 159 ( atm "101325 Pa" "Standard atmosphere" )
154 ( atm "101325 Pa" "Standard atmosphere" ) 160 ( torr " 1.333224e2 Pa" "Torr" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
155 ( torr "atm/760" "Torr" ) 161 ( mHg "1000 torr" "Meter of mercury" )
156 ( mHg "1000 torr" "Meter of mercury" ) 162 ( inHg "25.4 mmHg" "Inch of mercury" )
157 ( inHg "25.4 mmHg" "Inch of mercury" ) 163 ( inH2O "2.490889e2 Pa" "Inch of water" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
158 ( inH2O "248.84 Pa" "Inch of water" ) 164 ( psi "6894.75729317 Pa" "Pound per square inch" )
159 ( psi "6894.75729317 Pa" "Pound per square inch" ) 165
160 166 ;; Viscosity
161 ;; Viscosity 167 ( P "0.1 Pa s" "*Poise" )
162 ( P "0.1 Pa s" "*Poise" ) 168 ( St "1e-4 m^2/s" "Stokes" )
163 ( St "1e-4 m^2/s" "Stokes" ) 169
164 170 ;; Electromagnetism
165 ;; Electromagnetism 171 ( A nil "*Ampere" )
166 ( A nil "*Ampere" ) 172 ( C "A s" "Coulomb" )
167 ( C "A s" "Coulomb" ) 173 ( Fdy "ech Nav" "Faraday" )
168 ( Fdy "ech Nav" "Faraday" ) 174 ( e "1.602176462e-19 C" "Elementary charge" ) ;; CODATA 1998
169 ( e "1.60217733e-19 C" "Elementary charge" ) 175 ( ech "1.602176462e-19 C" "Elementary charge" ) ;; CODATA 1998
170 ( ech "1.60217733e-19 C" "Elementary charge" ) 176 ( V "W/A" "Volt" )
171 ( V "W/A" "Volt" ) 177 ( ohm "V/A" "Ohm" )
172 ( ohm "V/A" "Ohm" ) 178 ( mho "A/V" "Mho" )
173 ( mho "A/V" "Mho" ) 179 ( S "A/V" "Siemens" )
174 ( S "A/V" "Siemens" ) 180 ( F "C/V" "Farad" )
175 ( F "C/V" "Farad" ) 181 ( H "Wb/A" "Henry" )
176 ( H "Wb/A" "Henry" ) 182 ( T "Wb/m^2" "Tesla" )
177 ( T "Wb/m^2" "Tesla" ) 183 ( G "1e-4 T" "Gauss" )
178 ( G "1e-4 T" "Gauss" ) 184 ( Wb "V s" "Weber" )
179 ( Wb "V s" "Weber" ) 185
180 186 ;; Luminous intensity
181 ;; Luminous intensity 187 ( cd nil "*Candela" )
182 ( cd nil "*Candela" ) 188 ( sb "1e4 cd/m^2" "Stilb" )
183 ( sb "1e4 cd/m^2" "Stilb" ) 189 ( lm "cd sr" "Lumen" )
184 ( lm "cd sr" "Lumen" ) 190 ( lx "lm/m^2" "Lux" )
185 ( lx "lm/m^2" "Lux" ) 191 ( ph "1e4 lx" "Phot" )
186 ( ph "1e4 lx" "Phot" ) 192 ( fc "10.76391 lx" "Footcandle" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
187 ( fc "10.76 lx" "Footcandle" ) 193 ( lam "1e4 lm/m^2" "Lambert" )
188 ( lam "1e4 lm/m^2" "Lambert" ) 194 ( flam "3.426259 cd/m^2" "Footlambert" ) ;; NIST (http://physics.nist.gov/Pubs/SP811/appenB9.html)
189 ( flam "1.07639104e-3 lam" "Footlambert" ) 195
190 196 ;; Radioactivity
191 ;; Radioactivity 197 ( Bq "1/s" "*Becquerel" )
192 ( Bq "1/s" "*Becquerel" ) 198 ( Ci "3.7e10 Bq" "Curie" )
193 ( Ci "3.7e10 Bq" "Curie" ) 199 ( Gy "J/kg" "Gray" )
194 ( Gy "J/kg" "Gray" ) 200 ( Sv "Gy" "Sievert" )
195 ( Sv "Gy" "Sievert" ) 201 ( R "2.58e-4 C/kg" "Roentgen" )
196 ( R "2.58e-4 C/kg" "Roentgen" ) 202 ( rd ".01 Gy" "Rad" )
197 ( rd ".01 Gy" "Rad" ) 203 ( rem "rd" "Rem" )
198 ( rem "rd" "Rem" ) 204
199 205 ;; Amount of substance
200 ;; Amount of substance 206 ( mol nil "*Mole" )
201 ( mol nil "*Mole" ) 207
202 208 ;; Plane angle
203 ;; Plane angle 209 ( rad nil "*Radian" )
204 ( rad nil "*Radian" ) 210 ( circ "2 pi rad" "Full circle" )
205 ( circ "2 pi rad" "Full circle" ) 211 ( rev "circ" "Full revolution" )
206 ( rev "circ" "Full revolution" ) 212 ( deg "circ/360" "Degree" )
207 ( deg "circ/360" "Degree" ) 213 ( arcmin "deg/60" "Arc minute" )
208 ( arcmin "deg/60" "Arc minute" ) 214 ( arcsec "arcmin/60" "Arc second" )
209 ( arcsec "arcmin/60" "Arc second" ) 215 ( grad "circ/400" "Grade" )
210 ( grad "circ/400" "Grade" ) 216 ( rpm "rev/min" "Revolutions per minute" )
211 ( rpm "rev/min" "Revolutions per minute" ) 217
212 218 ;; Solid angle
213 ;; Solid angle 219 ( sr nil "*Steradian" )
214 ( sr nil "*Steradian" ) 220
215 221 ;; Other physical quantities (CODATA 1998)
216 ;; Other physical quantities (Physics Letters B239, 1 (1990)) 222 ( h "6.62606876e-34 J s" "*Planck's constant" )
217 ( h "6.6260755e-34 J s" "*Planck's constant" ) 223 ( hbar "h / 2 pi" "Planck's constant" )
218 ( hbar "h / 2 pi" "Planck's constant" ) 224 ( mu0 "4 pi 1e-7 H/m" "Permeability of vacuum" )
219 ( mu0 "4 pi 1e-7 H/m" "Permeability of vacuum" ) 225 ( Grav "6.673e-11 m^3/kg^1/s^2" "Gravitational constant" )
220 ( Grav "6.67259e-11 N m^2/kg^2" "Gravitational constant" ) 226 ( Nav "6.02214199e23 / mol" "Avagadro's constant" )
221 ( Nav "6.0221367e23 / mol" "Avagadro's constant" ) 227 ( me "9.10938188e-31 kg" "Electron rest mass" )
222 ( me "0.51099906 MeV/c^2" "Electron rest mass" ) 228 ( mp "1.67262158e-27 kg" "Proton rest mass" )
223 ( mp "1.007276470 amu" "Proton rest mass" ) 229 ( mn "1.67492716e-27 kg" "Neutron rest mass" )
224 ( mn "1.008664904 amu" "Neutron rest mass" ) 230 ( mu "1.88353109e-28 kg" "Muon rest mass" )
225 ( mu "0.113428913 amu" "Muon rest mass" ) 231 ( Ryd "10973731.568549 /m" "Rydberg's constant" )
226 ( Ryd "1.0973731571e5 invcm" "Rydberg's constant" ) 232 ( k "1.3806503e-23 J/K" "Boltzmann's constant" )
227 ( k "1.3806513e-23 J/K" "Boltzmann's constant" ) 233 ( fsc "7.297352533e-3" "Fine structure constant" )
228 ( fsc "1 / 137.0359895" "Fine structure constant" ) 234 ( muB "927.400899e-26 J/T" "Bohr magneton" )
229 ( muB "5.78838263e-11 MeV/T" "Bohr magneton" ) 235 ( muN "5.05078317e-27 J/T" "Nuclear magneton" )
230 ( muN "3.15245166e-14 MeV/T" "Nuclear magneton" ) 236 ( mue "-928.476362e-26 J/T" "Electron magnetic moment" )
231 ( mue "1.001159652193 muB" "Electron magnetic moment" ) 237 ( mup "1.410606633e-26 J/T" "Proton magnetic moment" )
232 ( mup "2.792847386 muN" "Proton magnetic moment" ) 238 ( R0 "8.314472 J/mol/K" "Molar gas constant" )
233 ( R0 "Nav k" "Molar gas constant" ) 239 ( V0 "22.710981e-3 m^3/mol" "Standard volume of ideal gas" )))
234 ( V0 "22.413992 L/mol" "Standard volume of ideal gas" )))
235 240
236 241
237(defvar math-additional-units nil 242(defvar math-additional-units nil
@@ -1290,4 +1295,8 @@ Entries are (SYMBOL EXPR DOC-STRING TEMP-TYPE BASE-UNITS).")
1290 (pop-to-buffer (get-buffer "*Units Table*")) 1295 (pop-to-buffer (get-buffer "*Units Table*"))
1291 (display-buffer (get-buffer "*Units Table*"))))) 1296 (display-buffer (get-buffer "*Units Table*")))))
1292 1297
1298;; Local Variables:
1299;; coding: iso-latin-1
1300;; End:
1301
1293;;; calc-units.el ends here 1302;;; calc-units.el ends here