]> git.donarmstrong.com Git - infobot.git/blob - files/unittab
Initial revision
[infobot.git] / files / unittab
1 #
2 # Unit defintions
3 # 10 March 1998  M-J. Dominus (mjd-perl-units-id-iut+buobvyy+@plover.com). 
4 # This file is in the PUBLIC DOMAIN.
5 # All rights abandoned.
6 #
7 # If you discover definitions of units that do not appear in this
8 # file, you are invited to mail them to mjd@pobox.com, so that I can
9 # include them in a future version.  Please include the date of this
10 # file, 3 March 1996, with all such submissions.
11
12 # If a unit is defined as `***', that means
13 # it has no definition because it is a fundamental unit.
14
15 # Fundamental units:
16 # Seven instrinsic SI units:
17 gram       ***
18 metre      ***
19 second     ***
20 ampere     ***
21 candela    ***
22 Kelvin     ***
23 mole       ***
24 # Two supplementary units
25 radian     ***
26 steradian  ***
27 # Some miscellany
28 dollar     ***
29 bit        ***
30 sheet      ***      # Of paper
31 turn       ***      # Of coiled wire
32
33 # DIMENSIONLESS
34 pi         3.1415926535897932386
35 two        2
36 half       1|2
37 e          2.718281828459045 # Why did I put this in?  Oh, I don't know.
38 Neper      1         # Unit of logarithmic ratio
39 Np         Neper
40 # Would it be better to make this a fundamental unit?
41 bel        .868588963 Np   # 2/ln(10) actually
42 B          bel
43 dB         decibel
44
45 # LENGTH
46 m       metre
47 km      kilometre
48 cm      centimetre
49 mm      millimetre
50 micron  micrometre
51 inch    2.54 cm        # This is the official definition and is exact
52 in      inch
53 inches  inch           # plural
54 foot    12 inch
55 ft      foot
56 feet    foot
57 yard    3 feet
58 yd      yard
59 mile    5280 feet
60 mi      mile
61 nautical 1.151         # For `nautical mile'
62 parsec  1.91615e13 mi
63 # light year will be implied by `year' and `light' below
64 fathom  6 ft
65 cable   120 fathoms
66 league  3 mi
67 bolt    25 yd          # Of cloth; bolt length varies from bolt to bolt
68                        # 25 yd is typical
69 cubit   18 in
70 ell     45 in          # More or less standard, although other ells
71                        # have also been used.
72 hand    4 in
73 palm    3 in
74 span    9 in
75 pace    2.5ft
76 astronomicalunit 92.9 megamiles  # Is this exact?
77 au      astronomicalunit
78 rope    20 ft
79 skein   360 feet
80
81 # Surveyor's
82 furlong 1|8 mi
83 chain   1|10 furlong
84 rod     1|4 chain
85 link    1|100 chain
86
87 # Typographic
88 point    .013837 in
89 pt       point
90 bigpoint 1|72 in
91 pica     12 pt
92 didot    1238|1157 pt
93 dd       didot
94 cicero   12dd  # TeX likes to abbreviate this to cc, but cc is cubic centimetre
95 scaledpoint 1|65536 pt # Internal to TeX
96 sp       scaledpoint
97
98
99
100 # AREA
101 are     (10 m)2        # Implies `hectare'
102 acre    chain furlong  # Now you know why an acre is the size it is
103 rood    1|4 acre
104 township 36 mi2        # Who uses these?
105 barn    (1.0E-12 centimetre)2 # Particle physics
106 board   144 in3/ft     # Implies `board feet'
107
108 # VOLUME
109 cc      cm3
110 litre   (decimetre)3
111 ml      millilitre
112 stere   m3
113 floz    29.573 ml      # `floz' means `fluid ounce', which is different
114                        # from `ounce', which is a measurement of mass.
115                        # See `pound' below for more details.
116 fldram  1|8 floz
117 minim   1|60 fldram
118 cup     8 floz
119 cu      cup
120 gill    1|2 cup 
121 pint    two cups
122 quart   two pints
123 pottle  two quarts     # Yup!
124 gallon  two pottles
125 qt      quart
126 gal     gallon
127 tablespoon 1|2 floz
128 tbsp       tablespoon
129 teaspoon   1|3 tbsp
130 tsp        teaspoon
131 cordfoot   16 ft2      # NOT the same as `cord foot'.
132 cordfeet   cordfoot
133 cord       8 cordfeet
134 # Barrels are complicated.  `Barrel' here means `U.S. liquid barrel'.
135 barrel     31.5 gal
136 bbl        barrel
137 hogshead   two barrels
138 butt       two hogsheads
139 tun        two butts
140 firkin     9 gal        # American firkin, not British firkin
141 perch      24.75 ft3    # Masonry
142 puncheon   84 gal
143
144 # Delightful British liquid volumes; they all begin with `brit'.
145 britfloz   28.41225 ml
146 britminim  1|480 britfloz
147 britdrachm 1|8 britfloz
148 drachm     britdrachm     # U.S. drachm is spelled `dram'.
149 britgill   5 britfloz     # five, NOT four.
150 britnoggin britgill
151 noggin     britnoggin     # Yeah, as though anyone else would have a `noggin.'
152 britpint   4 britgill
153 britpt     britpint
154 britquart  2 britpint
155 britqt     britquart
156 britgallon 4 britquart
157 britgal    britgallon    
158 britpeck   2 britgal
159 britfirkin 9 britgal  
160 britkilderkin  two britfirkins
161 kilderkin britkilderkin  # kilderkin is British only
162 britbucket 4 britgal     # That's `britbucket,' not `bit bucket'.
163 bucket     britbucket    # Buckets are brit only.
164 britlast   2909.414 litres
165 last       britlast
166
167 # Dry volume
168 dry     1.164904862579 # For `dry pint,' `dry quart,' etc.
169 peck    8 dry quarts
170 bushel  4 pecks
171 bu      bushel
172 seam    8bu
173 bag     3bu 
174
175
176 imperial 1.201          # For `imperial pint,' etc.  
177
178
179 # MASS (also WEIGHT)
180 #
181 # To avoid confusing the end user, we will pretend that `pound' is
182 # a unit of mass, interconvertible with `grams'.  If you want 
183 # pounds of force, see `lbf,' below.  In this section, `pound' 
184 # really means `mass of an object that weighs one-pound at the surface
185 # of the Earth.'  That is, in this program, `slug' has its usual
186 # meaning, and `pound' is synonymous aith `slug'.
187 g             gram
188 kg            kilogram
189 metricton     kilokilogram
190 tonne         metricton
191 mg            milligram
192 grain         64.79891 mg
193 ounce         437.5 grains
194 oz            ounce
195 pound         16 oz
196 lb            pound
197 slug          lb         
198 hundredweight 112 lb  # This is the `long' hundredweight, analagous to
199                       # the long ton.  There is also a `short' hundredwight,
200                       # but it's just a hectlb, so I put this one in instead.
201 cwt           hundredweight    
202 quarter       5 cwts
203 longton       20 cwt
204 ton           longton
205 short         100|112   # Convert long tons, cwts, and quarters to short.
206 shortton      short ton
207 stone         14 lb
208 cental        100 lb
209 wey           252 lb
210 # Obscure apothecaries' measures
211 scruple       20 grains
212 dram          3 scruples
213 apothounce    480 grains
214 apothoz       apothounce
215 apothpound    12 apothoz
216 apothlb       apothpound  
217 # Troy measures (for gold and precious stones)
218 pennyweight   24 grains
219 troyoz        480 grains # We can't define `troy' as a constant,
220                          # because there are 16 oz in a lb, but only
221                          # 12 troyoz in a troylb, so at least one of
222                          # `troy oz' or `troy lb' would be wrong.
223 troylb        12 troyoz
224 carat         3.08647 grain # Metric version.  Is this useful?
225 atomicmassunit 1.6605402e-27 kg # NIST 19990301 (+/- 0.10e-33 kg)
226 amu           atomicmassunit
227 quintal       100kg      # Metric quintal.  Wasn't there another quintal?
228 elvis         255lb      # At the time of his death, the King weighed 255 lb.
229
230 # TIME
231 sec             second
232 s               second
233 minute          60 sec
234 min             minute
235 hour            60 min
236 hr              hour
237 day             24 hrs
238 dy              day                  # This will denote mean solar days
239 siderealday     0.99726957 dys    
240 week            7 days
241 wk              week
242 month           30 days
243 lunarmonth      29.530588 days       # Mean solar days
244 meanmonth       730 hours
245 mo              month
246 tropicalyear    365.24219 dys        # Mean solar days
247 siderealyear    365.25636 dys        # Mean solar days
248 leapyear        366       dys        # Mean solar days
249 calendaryear    365       dys        # Mean solar days
250 gregorianyear   365.2425  dys
251 year            tropicalyear         # Correct on average for most calculations
252 yr              years
253 fortnight       two weeks
254 decade          10 years
255 century         100 years
256 millennium      1000 years
257 millennia       millennium
258 centuries       century
259 beat            1|1000 day           # Swatch Internet Time (``Fuck the Sun'')
260 # Velocity
261 knot            1 nautical mi/hour
262 mph             1 mi/hr
263
264 # SCIENTIFIC
265 #
266 # Electromagnetic items, work, force, energy.
267 #
268 # Velocity
269 c             299792458 m/s  # NIST 19990301 EXACT
270 light         c   # Implies `light year'
271
272
273 # Absolute temperature
274 kelvin        Kelvin
275 K             Kelvin
276 Rankine       5|9 K     # This is a very funny unit
277 Ra            Rankine
278 ### TODO: allow addition aswell.
279 #celsius       Celsius
280 #C             Celsius
281 #Celsius       K+273.1
282 #farenheit     Farenheit
283 #F             Farenheit
284
285 # Amount of substance
286 mol           mole
287 Avogadro      6.0221367e23
288 avogadro      Avogadro
289 molecule      1 mole per Avogadro # 1 mole is an Avogagro-number of molecules
290
291 # Current
292 # The Ampere is fundamental here, defined as the constant current
293 # which, if maintained in two straight parallel conductors of infinite
294 # length, of negligible circular cross-section, and placed 1m apart in
295 # vacuum, would produce between these conductors a force equal to 2e-7
296 # newtons per metre of length.
297 Ampere        ampere
298 amp           ampere
299 abampere      10 amps
300 abamp         abampere
301 statampere    3.335635e-11 abamperes
302 statamp       statampere
303
304 # What is this called?  Is it capitalized?  Is there an abbreviation?
305 gilbert       0.79577472 ampere turns
306
307 # Electrostatic charge
308 Coulomb       ampere sec
309 coulomb       Coulomb
310 coul          Coulomb
311 C             Coulomb
312 electron      1.60217733e-19 C  # Charge on the electron; implies electron-volts
313 e             electron 
314 abcoulomb     10C
315 statcoulomb   3.335635e-11 abcoulomb
316
317
318 # Force
319 Newton        kg m/s2
320 newton        Newton
321 N             newton
322 Nm            newton-metre
323 dyne          g cm/s2
324 grav          9.8 m/s2  # Acceleration due to gravity
325 gee           grav
326 # Actually the accleration varies with altitude and latitude, 
327 # from 9.78039 m/s2 at the equator to 9.83217 m/s2 at the poles.
328 # This mean value corresponds to a latitude of about 38 degrees.
329 lbf           lb grav
330
331 # Pressure
332 Pascal        N/m2
333 pascal        Pascal
334 Pa            pascal
335 hPa           hectopascal
336 atmosphere    1.01325 N/m2  # NIST 1990301 EXACT
337 atm           atmosphere
338 bar           megadyne/cm2  # Implies `millibars'
339 psi           pound/inch/sec2
340 mercury       1|760 atm/mm # Implies `mm mercury' and `inches mercury'
341 hg            mercury
342 torricelli    mm hg
343 torr          torricelli
344 water         .0295 atm/ft # Implies `feet water'
345 barye         dyne/cm2
346 air           6.6083e-5 atm/foot  # At 60 deg.F; Implies `feet air'
347
348 # Work and energy
349 Joule         newton-metre
350 joule         Joule
351 J             joule
352 kJ            kilojoule
353 footpound     ft-lbf   # foot-pound won't work, because `pound' is a mass
354 calorie       4.186 J
355 cal           calorie
356 kcal          kilocalorie
357 britishthermalunit  1054.8 J
358 btu           britishthermalunit
359 erg           dyne-cm
360 # Kilowatt-hour (kWh) will be implied by `Watt'.
361
362
363 # Power
364 Watt          J/sec
365 watt          Watt
366 W             Watt
367 kW            kiloWatt
368 MW            megaWatt
369 horsepower    550 ft-lbf/s
370
371 # Electric potential
372 Volt          W/amp
373 volt          Volt
374 V             Volt
375 abvolt        1|100 microvolt
376 statvolt      2.997930e10 V
377
378 # Frequency
379 cycle         1           # For `cycles per second'
380 Hertz         cycles per second
381 Hz            Hertz
382 hz            Hz
383
384 # Inductance
385 Henry         volt s/amp
386 henry         Henry
387 H             Henry
388 abhenry       1.0e-9 henry
389 Henries       Henry       # For plural
390 henries       Henry
391 stathenry     8.987584e11 henries
392 stathenries   stathenry
393
394 # Etc.
395 Weber         volt s
396 weber         Weber
397 Wb            weber
398 Tesla         Wb/m2
399 tesla         Tesla
400 T             tesla
401 Oersted       1|4 pi kiloamp/m
402 oersted       Oersted
403 Oe            oersted
404 Maxwell       1.0e-8 Wb
405 maxwell       Maxwell
406 Mx            Maxwell
407 Gauss         1.0e-4 T
408 gauss         Gauss
409 # We won't use G for Gauss because it is more important to 
410 # use it for the universal gravitational constant
411
412 # Capacitance
413 # `farad' is *not* an abbreviation for `Faraday' as far as I can tell.
414 farad         amp sec / volt
415 F             farad
416 abfarad       1.0e9 farad
417 statfarad     1.112646e-13 farad
418
419 # Resistance
420 Ohm           volt/amp
421 ohm           Ohm
422 abohm         1.0e-9 ohm
423 statohm       8.987584e11 Ohms
424
425 # Conductance
426 mho           1/ohm
427 abmho         1/abohm
428 Siemens       mho
429 siemens       Siemens
430
431 # Misc
432 Angstrom      1.0e-10 m
433 angstrom      Angstrom
434 G             6.67259e-11 N m2/kg2 # Newton gravitational constant NIST19990301
435 lightyear     light year    # Common abbreviation
436 eV            e V           # Electron volts
437 ev            eV
438 kev           kiloeV
439 Mev           megaeV
440 Gev           gigaeV
441 Tev           teraeV
442 energy        c2 # You can ask for `1 gram energy' and get
443                  # the amount of energy equivalent to 
444                  # 1 gram according to e=mc2.
445                  # Check: 1amu energy == 931.16 Mev?
446 Franklin      (10/c) C cm/sec
447 Fr            Franklin
448 franklin      Franklin
449 Biot          10 amp
450 Bi            Biot
451 biot          Biot
452
453 # Viscosity - Maybe someone who understands this better can check.
454 poise         g/(cm s) # Named after M. Poiseuille
455 rhe           1/poise
456 reyn          (lbf s)/in2
457 # Kinematic viscosity = viscosity per unit density
458 stoke         cm2/s
459
460 # Refrigeration - Maybe someone who understands this better can check.
461 refrigeration 288000 btu/ton
462 ice           tons refrigeration / 2009.1 lb
463
464 # Light
465 # The candela is fundamental here.  Prior to 1979, it was defined as
466 # the luminous intensity of a black body at the temperature of
467 # solidification of platinum, whose radiating surface is 1/60 cm2.  It
468 # is now the luminous intensity, in a given direction, of a source
469 # that emits monochromatic radiation of frequency 540e12 Hz and that
470 # has a radiant intensity in that direction of 1|683 W/sr
471 cd            candela
472 sr            steradian
473 lumen         candela sr
474 lm            lumen
475 lux           lm/m2
476 lx            lux
477 candlepower   12.566370 lumens
478 candle        candela # ``International standard candle''
479 Hefner        0.90 candles # This was the German standard in early C20.
480 hefner        Hefner
481 Lambert       lm/cm2
482 lambert       Lambert
483 footcandle    lm/ft2  # NOT the same as foot-candle.
484 phot          1.0e4 lx
485 stilb         candle/m2   # Same as a pi lambert
486
487 # Various important physical constants
488 # I got this stuff from physics.nist.gov on 19990301.
489 h             6.6260755e-27 erg-sec   # Planck's constant
490 hbar          h/(2 pi)
491 plancklength  1.61605e-35 m
492 planckmass    2.17671e-8 kg
493 plancktime    5.39056e-44 sec
494 # Let's reserve `Planck' for a while longer until I can decide if
495 # they'd be useful in `planck time' etc.
496 permeability  4*pi*1.0e-7 H/m     # Magnetic permeability of vacuum constant 
497 permittivity  8.854187817e-12 F/m # Electric permittivity of vacuum constant 
498 protonmass    1.6726231e-27 kg
499 neutronmass   1.6749286e-27 kg
500 electronmass  9.1093897e-31 kg 
501 finestructure 7.29735308e-3 # Rl
502 # Electron charge is up above under `electrostatic'.
503 # There's no reason to get too obscure here because if someone wants
504 # they can make up an `obscure physical constants' file that
505 # physiscists could load in if they wanted to.  So I've omitted stuff
506 # like the magnetic moment of the muon.
507
508 # ANGULAR
509 rad             radian
510 circle          2 pi radians
511 revolution      circle       # For revolutions / sec
512 rev             revolution 
513 rpm             revolutions per minute
514 quadrant        1|4 circle
515 degree          1|360 circle
516 arcminute       1|60 degree
517 arcsecond       1|60 arcminute
518 arcmin          arcminute
519 arcsec          arcsecond
520 sphere          4 pi steradians
521 grade           1|100 quadrant
522 grad            grade
523
524 # PAPER
525 quire           50 sheets
526 ream            10 quires
527
528 # INFORMATION
529 byte            8 bits
530 kbyte           1024 bytes   # `kilobyte' means 1000    bytes
531 # Don't use `K'; that's for Kelvins.
532 kb              kbyte
533 Kb              kbyte
534 KB              kbyte
535 mbyte           1024 kbytes  # `megabyte' means 1000000 bytes
536 meg             mbyte
537 kbit            1024 bits
538 Kbit            kbit
539 mbit            1024 kbits
540 Mbit            mbit
541 baud            bit/sec      # Not strictly correct
542
543 # MONEY
544 #
545 # Conversions accurate only as of 25 November 1996.
546 #
547 $               dollar
548 usdollar        $
549 usd             $
550 us$             $
551 $us             $
552 US$             $
553 $US             $
554 cent            1|100 $
555 Australia.dollar                0.8123$
556 AUS$                    Australia.dollar
557 Austria.schilling               0.09438$
558 Belgium.franc           0.03223$
559 Brazil.real             0.9709$
560 British.pound           1.681$
561 pound.sterling          British.pound
562 sterling                British.pound
563 Canada.dollar           0.7468$
564 Can$                    Canada.dollar
565 Cayman.currency         1.22$
566 Denmark.krone           0.173$
567 krone                   Denmark.krone
568 EuropeanCommunityUnit.ECU       1.278$
569 ECU                     EuropeanCommunityUnit.ECU
570 ecu                     ECU
571 Finland.markka          0.2203$
572 markka                  Finland.markka
573 France.franc            0.1963$
574 franc                   France.franc
575 Germany.mark            0.6647$
576 DM                      Germany.mark
577 Deutschmark             DM
578 mark                    DM
579 Greece.drachma          0.004216$
580 drachma                 Greece.drachma
581 HongKong.dollar         0.1294$
582 HK$                     HongKong.dollar
583 India.rupee             0.02797$
584 rupee                   India.rupee
585 Ireland.punt            1.684$
586 punt                    Ireland.punt
587 Israel.shekel           0.3623$
588 shekel                  Israel.shekel
589 Italy.lira              0.0006655$
590 Japan.yen               0.008976$
591 yen                     Japan.yen
592 Kenya.shilling          0.02376$
593 Malaysia.dollar         0.397$
594 Mexico.peso             0.1269$
595 peso                    Mexico.peso
596 Morocco.dirham          0.1248$
597 dirham                  Morocco.dirham
598 Netherlands.guilder     0.5924$
599 guilder                 Netherlands.guilder
600 NewZealand.dollar       0.7153$
601 NZ$                     NewZealand.dollar
602 Norway.krone            0.1576$
603 krone                   Norway.krone
604 Portugal.escudo         0.006577$
605 escudo                  Portugal.escudo
606 Senegal.CFAfranc        0.002019$
607 SouthAfrica.rand        0.2169$
608 rand                    SouthAfrica.rand
609 Spain.peseta            0.007896$
610 peseta                  Spain.peseta
611 Sweden.krona            0.1513$
612 krona                   Sweden.krona
613 Switzerland.franc       0.788$
614 swissfranc              Switzerland.franc
615 Swissfranc              Switzerland.franc
616 Turkey.lira             1.3e-05$
617 # Old-style Brit money.  Did I omit anything interesting?
618 sovereign               sterling
619 shilling             1|20 sterling
620 penny                1|12 shilling
621 pence                penny
622 farthing             1|4 penny
623 hapenny              half penny
624 twopence             two pence
625 tuppence             two pence
626 crown                5 shillings  # Implies `half crown'
627 guinea               21 shillings
628 florin               2 shillings
629
630
631 # For `register tons'
632 register        100 ft3/ton
633 registerton     register ton
634
635 # What's missing?
636 # bequerel (nucleotide radioactivity): Bq = k/s         k=1??
637 # gray (absorbed dose): Gy = k J/kg                     k=1??
638 # sievert (dose equivalent): Sv = k J/kg                        k=1??
639 # curie: Ci = 3.3e10 Bq
640 # roentgen: R = 2.58e-4 C/kg
641 # rad: rad = centigray
642 # rem: rem = centisievert