diff options
| author | Jay Belanger | 2008-10-06 12:40:39 +0000 |
|---|---|---|
| committer | Jay Belanger | 2008-10-06 12:40:39 +0000 |
| commit | ac318df0f794d9014d07b714815bb83a320f9f3d (patch) | |
| tree | c364549d283dcb1d9ae515abd12a9919616adf82 | |
| parent | a35809ba8f63d009cb0c6a380f62015a1245248d (diff) | |
| download | emacs-ac318df0f794d9014d07b714815bb83a320f9f3d.tar.gz emacs-ac318df0f794d9014d07b714815bb83a320f9f3d.zip | |
(math-standard-units): Update the values of the units.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/calc/calc-units.el | 118 |
2 files changed, 65 insertions, 58 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 62d33cbed5e..9f11d06cafa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-10-06 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc/calc-units.el (math-standard-units): Update the values | ||
| 4 | of the units. | ||
| 5 | |||
| 1 | 2008-10-06 Juanma Barranquero <lekktu@gmail.com> | 6 | 2008-10-06 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * bookmark.el (bookmark-unload-function): New function. | 8 | * bookmark.el (bookmark-unload-function): New function. |
diff --git a/lisp/calc/calc-units.el b/lisp/calc/calc-units.el index 4ab65877cf4..de6d7400139 100644 --- a/lisp/calc/calc-units.el +++ b/lisp/calc/calc-units.el | |||
| @@ -57,13 +57,14 @@ | |||
| 57 | "149597870691 m (*)") | 57 | "149597870691 m (*)") |
| 58 | ;; (approx) NASA JPL (http://neo.jpl.nasa.gov/glossary/au.html) | 58 | ;; (approx) NASA JPL (http://neo.jpl.nasa.gov/glossary/au.html) |
| 59 | ( lyr "c yr" "Light Year" ) | 59 | ( lyr "c yr" "Light Year" ) |
| 60 | ( pc "3.0856775854e16 m" "Parsec" nil | 60 | ( pc "3.0856775854*10^16 m" "Parsec" nil |
| 61 | "3.0856775854e16 m (*)") ;; (approx) ESUWM | 61 | "3.0856775854 10^16 m (*)") ;; (approx) ESUWM |
| 62 | ( nmi "1852 m" "Nautical Mile" ) | 62 | ( nmi "1852 m" "Nautical Mile" ) |
| 63 | ( fath "6 ft" "Fathom" ) | 63 | ( fath "6 ft" "Fathom" ) |
| 64 | ( fur "660 ft" "Furlong") | ||
| 64 | ( mu "1 um" "Micron" ) | 65 | ( mu "1 um" "Micron" ) |
| 65 | ( mil "in/1000" "Mil" ) | 66 | ( mil "(1/1000) in" "Mil" ) |
| 66 | ( point "in/72" "Point (1/72 inch)" ) | 67 | ( point "(1/72) in" "Point (1/72 inch)" ) |
| 67 | ( Ang "10^(-10) m" "Angstrom" ) | 68 | ( Ang "10^(-10) m" "Angstrom" ) |
| 68 | ( mfi "mi+ft+in" "Miles + feet + inches" ) | 69 | ( mfi "mi+ft+in" "Miles + feet + inches" ) |
| 69 | ;; TeX lengths | 70 | ;; TeX lengths |
| @@ -77,7 +78,7 @@ | |||
| 77 | ;; Area | 78 | ;; Area |
| 78 | ( hect "10000 m^2" "*Hectare" ) | 79 | ( hect "10000 m^2" "*Hectare" ) |
| 79 | ( a "100 m^2" "Are") | 80 | ( a "100 m^2" "Are") |
| 80 | ( acre "mi^2 / 640" "Acre" ) | 81 | ( acre "(1/640) mi^2" "Acre" ) |
| 81 | ( b "10^(-28) m^2" "Barn" ) | 82 | ( b "10^(-28) m^2" "Barn" ) |
| 82 | 83 | ||
| 83 | ;; Volume | 84 | ;; Volume |
| @@ -94,7 +95,8 @@ | |||
| 94 | ;; That gives the following exact value for tsp. | 95 | ;; That gives the following exact value for tsp. |
| 95 | ( tsp "492892159375*10^(-11) ml" "Teaspoon" nil | 96 | ( tsp "492892159375*10^(-11) ml" "Teaspoon" nil |
| 96 | "4.92892159375 ml") | 97 | "4.92892159375 ml") |
| 97 | ( vol "tsp+tbsp+ozfl+cup+pt+qt+gal" "Gallons + ... + teaspoons" ) | 98 | ( vol "tsp+tbsp+ozfl+cup+pt+qt+gal" "Gallons + ... + teaspoons" nil |
| 99 | "tsp+tbsp+ozfl+cup+pt+qt+gal") | ||
| 98 | ( galC "galUK" "Canadian Gallon" ) | 100 | ( galC "galUK" "Canadian Gallon" ) |
| 99 | ( galUK "454609*10^(-5) L" "UK Gallon" nil | 101 | ( galUK "454609*10^(-5) L" "UK Gallon" nil |
| 100 | "4.54609 L") ;; NIST | 102 | "4.54609 L") ;; NIST |
| @@ -107,7 +109,8 @@ | |||
| 107 | ( day "24 hr" "Day" ) | 109 | ( day "24 hr" "Day" ) |
| 108 | ( wk "7 day" "Week" ) | 110 | ( wk "7 day" "Week" ) |
| 109 | ( hms "wk+day+hr+min+s" "Hours, minutes, seconds" ) | 111 | ( hms "wk+day+hr+min+s" "Hours, minutes, seconds" ) |
| 110 | ( yr "365.25 day" "Year" ) ;; (approx, but keep) | 112 | ( yr "36525*10^(-2) day" "Year (Julian)" nil |
| 113 | "365.25 day") | ||
| 111 | ( Hz "1/s" "Hertz" ) | 114 | ( Hz "1/s" "Hertz" ) |
| 112 | 115 | ||
| 113 | ;; Speed | 116 | ;; Speed |
| @@ -131,12 +134,12 @@ | |||
| 131 | ( tonUK "10160469088*10^(-7) kg" "UK ton" nil | 134 | ( tonUK "10160469088*10^(-7) kg" "UK ton" nil |
| 132 | "1016.0469088 kg") ;; ESUWM | 135 | "1016.0469088 kg") ;; ESUWM |
| 133 | ( lbt "12 ozt" "Troy pound" ) | 136 | ( lbt "12 ozt" "Troy pound" ) |
| 134 | ( ozt "31.10347680 g" "Troy ounce" nil | 137 | ( ozt "311034768*10^(-7) g" "Troy ounce" nil |
| 135 | "31.10347680 g (*)") ;; (approx) ESUWM | 138 | "31.10347680 g") ;; ESUWM, 1/12 exact value for lbt |
| 136 | ( ct "(2/10) g" "Carat" nil | 139 | ( ct "(2/10) g" "Carat" nil |
| 137 | "0.2 g") ;; ESUWM | 140 | "0.2 g") ;; ESUWM |
| 138 | ( u "1.660538782e-27 kg" "Unified atomic mass" nil | 141 | ( u "1.660538782*10^(-27) kg" "Unified atomic mass" nil |
| 139 | "1.660538782e-27 kg (*)");;(approx) CODATA | 142 | "1.660538782 10^-27 kg (*)");;(approx) CODATA |
| 140 | 143 | ||
| 141 | ;; Force | 144 | ;; Force |
| 142 | ( N "m kg/s^2" "*Newton" ) | 145 | ( N "m kg/s^2" "*Newton" ) |
| @@ -150,8 +153,11 @@ | |||
| 150 | ;; Energy | 153 | ;; Energy |
| 151 | ( J "N m" "*Joule" ) | 154 | ( J "N m" "*Joule" ) |
| 152 | ( erg "10^(-7) J" "Erg" ) | 155 | ( erg "10^(-7) J" "Erg" ) |
| 153 | ( cal "4.18674 J" "International Table Calorie" nil | 156 | ( cal "41868*10^(-4) J" "International Table Calorie" nil |
| 154 | "4.18674 J (*)");;(approx) ESUWM | 157 | "4.1868 J") ;; NIST |
| 158 | ( calth "4184*10^(-3) J" "Thermochemical Calorie" nil | ||
| 159 | "4.184 J") ;; NIST | ||
| 160 | ( Cal "1000 cal" "Large Calorie") | ||
| 155 | ( Btu "105505585262*10^(-8) J" "International Table Btu" nil | 161 | ( Btu "105505585262*10^(-8) J" "International Table Btu" nil |
| 156 | "1055.05585262 J") ;; ESUWM | 162 | "1055.05585262 J") ;; ESUWM |
| 157 | ( eV "ech V" "Electron volt" ) | 163 | ( eV "ech V" "Electron volt" ) |
| @@ -167,8 +173,8 @@ | |||
| 167 | 173 | ||
| 168 | ;; Power | 174 | ;; Power |
| 169 | ( W "J/s" "*Watt" ) | 175 | ( W "J/s" "*Watt" ) |
| 170 | ( hp "745.699871581 W" "Horsepower" nil | 176 | ( hp "550 ft lbf/s" "Horsepower") ;;ESUWM |
| 171 | "745.699871581 W (*)") ;;(approx) ESUWM | 177 | ( hpm "75 m kgf/s" "Metric Horsepower") ;;ESUWM |
| 172 | 178 | ||
| 173 | ;; Temperature | 179 | ;; Temperature |
| 174 | ( K nil "*Degree Kelvin" K ) | 180 | ( K nil "*Degree Kelvin" K ) |
| @@ -183,13 +189,12 @@ | |||
| 183 | ( Pa "N/m^2" "*Pascal" ) | 189 | ( Pa "N/m^2" "*Pascal" ) |
| 184 | ( bar "10^5 Pa" "Bar" ) | 190 | ( bar "10^5 Pa" "Bar" ) |
| 185 | ( atm "101325 Pa" "Standard atmosphere" ) ;; CODATA | 191 | ( atm "101325 Pa" "Standard atmosphere" ) ;; CODATA |
| 186 | ( Torr "1.333224e2 Pa" "Torr" nil | 192 | ( Torr "(1/760) atm" "Torr") |
| 187 | "1.333224e2 Pa (*)") ;;(approx) NIST | ||
| 188 | ( mHg "1000 Torr" "Meter of mercury" ) | 193 | ( mHg "1000 Torr" "Meter of mercury" ) |
| 189 | ( inHg "254*10^(-1) mmHg" "Inch of mercury" nil | 194 | ( inHg "254*10^(-1) mmHg" "Inch of mercury" nil |
| 190 | "25.4 mmHg") | 195 | "25.4 mmHg") |
| 191 | ( inH2O "2.490889e2 Pa" "Inch of water" nil | 196 | ( inH2O "2.490889*10^2 Pa" "Inch of water" nil |
| 192 | "2.490889e2 Pa (*)") ;;(approx) NIST | 197 | "2.490889 10^2 Pa (*)") ;;(approx) NIST |
| 193 | ( psi "lbf/in^2" "Pounds per square inch" ) | 198 | ( psi "lbf/in^2" "Pounds per square inch" ) |
| 194 | 199 | ||
| 195 | ;; Viscosity | 200 | ;; Viscosity |
| @@ -201,8 +206,8 @@ | |||
| 201 | ( C "A s" "Coulomb" ) | 206 | ( C "A s" "Coulomb" ) |
| 202 | ( Fdy "ech Nav" "Faraday" ) | 207 | ( Fdy "ech Nav" "Faraday" ) |
| 203 | ( e "ech" "Elementary charge" ) | 208 | ( e "ech" "Elementary charge" ) |
| 204 | ( ech "1.602176487e-19 C" "Elementary charge" nil | 209 | ( ech "1.602176487*10^(-19) C" "Elementary charge" nil |
| 205 | "1.602176487e-19 C (*)") ;;(approx) CODATA | 210 | "1.602176487 10^-19 C (*)") ;;(approx) CODATA |
| 206 | ( V "W/A" "Volt" ) | 211 | ( V "W/A" "Volt" ) |
| 207 | ( ohm "V/A" "Ohm" ) | 212 | ( ohm "V/A" "Ohm" ) |
| 208 | ( mho "A/V" "Mho" ) | 213 | ( mho "A/V" "Mho" ) |
| @@ -219,11 +224,9 @@ | |||
| 219 | ( lm "cd sr" "Lumen" ) | 224 | ( lm "cd sr" "Lumen" ) |
| 220 | ( lx "lm/m^2" "Lux" ) | 225 | ( lx "lm/m^2" "Lux" ) |
| 221 | ( ph "10000 lx" "Phot" ) | 226 | ( ph "10000 lx" "Phot" ) |
| 222 | ( fc "10.76391 lx" "Footcandle" nil | 227 | ( fc "lm/ft^2" "Footcandle") ;; ESUWM |
| 223 | "10.76391 lx (*)") ;;(approx) NIST | ||
| 224 | ( lam "10000 lm/m^2" "Lambert" ) | 228 | ( lam "10000 lm/m^2" "Lambert" ) |
| 225 | ( flam "3.426259 cd/m^2" "Footlambert" nil | 229 | ( flam "(1/pi) cd/ft^2" "Footlambert") ;; ESUWM |
| 226 | "3.426259 cd / m^2 (*)") ;;(approx) NIST | ||
| 227 | 230 | ||
| 228 | ;; Radioactivity | 231 | ;; Radioactivity |
| 229 | ( Bq "1/s" "*Becquerel" ) | 232 | ( Bq "1/s" "*Becquerel" ) |
| @@ -252,41 +255,40 @@ | |||
| 252 | 255 | ||
| 253 | ;; Other physical quantities | 256 | ;; Other physical quantities |
| 254 | ;; The values are from CODATA, and are approximate. | 257 | ;; The values are from CODATA, and are approximate. |
| 255 | ( h "6.62606896e-34 J s" "*Planck's constant" nil | 258 | ( h "6.62606896*10^(-34) J s" "*Planck's constant" nil |
| 256 | "6.62606896e-34 J s (*)") | 259 | "6.62606896 10^-34 J s (*)") |
| 257 | ( hbar "h / (2 pi)" "Planck's constant" ) | 260 | ( hbar "h / (2 pi)" "Planck's constant" ) ;; Exact |
| 258 | ( mu0 "4 pi 10^(-7) H/m" "Permeability of vacuum" nil | 261 | ( mu0 "4 pi 10^(-7) H/m" "Permeability of vacuum") ;; Exact |
| 259 | "4 pi 10^(-7) H/m (*)") | 262 | ( G "6.67428e-11 m^3/(kg s^2)" "Gravitational constant" nil |
| 260 | ( G "6.67428e-11 m^3/(kg s^2)" "Gravitational constant" nil | ||
| 261 | "6.67428e-11 m^3/(kg s^2) (*)") | 263 | "6.67428e-11 m^3/(kg s^2) (*)") |
| 262 | ( Nav "6.02214179e23 / mol" "Avagadro's constant" nil | 264 | ( Nav "6.02214179*10^(23) / mol" "Avagadro's constant" nil |
| 263 | "6.02214179e23 / mol (*)") | 265 | "6.02214179 10^23 / mol (*)") |
| 264 | ( me "9.10938215e-31 kg" "Electron rest mass" nil | 266 | ( me "9.10938215*10^(-31) kg" "Electron rest mass" nil |
| 265 | "9.10938215e-31 kg (*)") | 267 | "9.10938215 10^-31 kg (*)") |
| 266 | ( mp "1.672621637e-27 kg" "Proton rest mass" nil | 268 | ( mp "1.672621637*10^(-27) kg" "Proton rest mass" nil |
| 267 | "1.672621637e-27 kg (*)") | 269 | "1.672621637 10^-27 kg (*)") |
| 268 | ( mn "1.674927211e-27 kg" "Neutron rest mass" nil | 270 | ( mn "1.674927211*10^(-27) kg" "Neutron rest mass" nil |
| 269 | "1.674927211e-27 kg (*)") | 271 | "1.674927211 10^-27 kg (*)") |
| 270 | ( mmu "1.88353130e-28 kg" "Muon rest mass" nil | 272 | ( mmu "1.88353130*10^(-28) kg" "Muon rest mass" nil |
| 271 | "1.88353130e-28 kg (*)") | 273 | "1.88353130 10^-28 kg (*)") |
| 272 | ( Ryd "10973731.568527 /m" "Rydberg's constant" nil | 274 | ( Ryd "10973731.568527 /m" "Rydberg's constant" nil |
| 273 | "10973731.568527 /m (*)") | 275 | "10973731.568527 /m (*)") |
| 274 | ( k "1.3806504e-23 J/K" "Boltzmann's constant" nil | 276 | ( k "1.3806504*10^(-23) J/K" "Boltzmann's constant" nil |
| 275 | "1.3806504e-23 J/K (*)") | 277 | "1.3806504 10^-23 J/K (*)") |
| 276 | ( alpha "7.2973525376e-3" "Fine structure constant" nil | 278 | ( alpha "7.2973525376*10^(-3)" "Fine structure constant" nil |
| 277 | "7.2973525376e-3 (*)") | 279 | "7.2973525376 10^-3 (*)") |
| 278 | ( muB "927.400915e-26 J/T" "Bohr magneton" nil | 280 | ( muB "927.400915*10^(-26) J/T" "Bohr magneton" nil |
| 279 | "927.400915e-26 J/T (*)") | 281 | "927.400915 10^-26 J/T (*)") |
| 280 | ( muN "5.05078324e-27 J/T" "Nuclear magneton" nil | 282 | ( muN "5.05078324*10^(-27) J/T" "Nuclear magneton" nil |
| 281 | "5.05078324e-27 J/T (*)") | 283 | "5.05078324 10^-27 J/T (*)") |
| 282 | ( mue "-928.476377e-26 J/T" "Electron magnetic moment" nil | 284 | ( mue "-928.476377*10^(-26) J/T" "Electron magnetic moment" nil |
| 283 | "-928.476377e-26 J/T (*)") | 285 | "-928.476377 10^-26 J/T (*)") |
| 284 | ( mup "1.410606662e-26 J/T" "Proton magnetic moment" nil | 286 | ( mup "1.410606662*10^(-26) J/T" "Proton magnetic moment" nil |
| 285 | "1.410606662e-26 J/T (*)") | 287 | "1.410606662 10^-26 J/T (*)") |
| 286 | ( R0 "8.314472 J/(mol K)" "Molar gas constant" nil | 288 | ( R0 "8.314472 J/(mol K)" "Molar gas constant" nil |
| 287 | "8.314472 J/(mol K) (*)") | 289 | "8.314472 J/(mol K) (*)") |
| 288 | ( V0 "22.710981e-3 m^3/mol" "Standard volume of ideal gas" nil | 290 | ( V0 "22.710981*10^(-3) m^3/mol" "Standard volume of ideal gas" nil |
| 289 | "22.710981e-3 m^3/mol (*)"))) | 291 | "22.710981 10^-3 m^3/mol (*)"))) |
| 290 | 292 | ||
| 291 | 293 | ||
| 292 | (defvar math-additional-units nil | 294 | (defvar math-additional-units nil |
| @@ -1462,7 +1464,7 @@ If EXPR is nil, return nil." | |||
| 1462 | (let ((inhibit-read-only t)) | 1464 | (let ((inhibit-read-only t)) |
| 1463 | (erase-buffer) | 1465 | (erase-buffer) |
| 1464 | (insert "Calculator Units Table:\n\n") | 1466 | (insert "Calculator Units Table:\n\n") |
| 1465 | (insert "(All definitions are exact unless marked with an (*).)\n\n") | 1467 | (insert "(All definitions are exact unless marked with an asterisk (*).)\n\n") |
| 1466 | (insert "Unit Type Definition Description\n\n") | 1468 | (insert "Unit Type Definition Description\n\n") |
| 1467 | (while uptr | 1469 | (while uptr |
| 1468 | (setq u (car uptr) | 1470 | (setq u (car uptr) |