]> git.donarmstrong.com Git - infobot.git/blob - files/unittab
updated
[infobot.git] / files / unittab
1 #
2 # Unit defintions
3 # 18 May 2001  M-J. Dominus (mjd-perl-units+@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-perl-units+@plover.com, so
9 # that I can include them in a future version.  Please include the
10 # date of this file, 18 May 2001, 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 # http://perl.plover.com/units/unittab
16
17 # Fundamental units:
18 # Seven instrinsic SI units:
19 gram       ***
20 meter      ***
21 second     ***
22 ampere     ***
23 candela    ***
24 Kelvin     ***
25 mole       ***
26 # Two supplementary units
27 radian     ***
28 steradian  ***
29 # Some miscellany
30 dollar     ***
31 bit        ***
32 sheet      ***      # Of paper
33 turn       ***      # Of coiled wire
34
35 # DIMENSIONLESS
36 pi         3.1415926535897932386
37 two        2
38 half       1|2
39 e          2.718281828459045 # Why did I put this in?  Oh, I don't know.
40 Neper      1         # Unit of logarithmic ratio
41 Np         Neper
42 # Would it be better to make this a fundamental unit?
43 bel        .868588963 Np   # 2/ln(10) actually
44 B          bel
45 dB         decibel
46
47 # LENGTH
48 m       meter
49 km      kilometer
50 cm      centimeter
51 mm      millimeter
52 micron  micrometer
53 inch    2.54 cm        # This is the official definition and is exact
54 in      inch
55 inches  inch           # plural
56 foot    12 inch
57 ft      foot
58 feet    foot
59 yard    3 feet
60 yd      yard
61 mile    5280 feet
62 mi      mile
63 nautical 1.151         # For `nautical mile'
64 parsec  1.91615e13 mi
65 # light year will be implied by `year' and `light' below
66 fathom  6 ft
67 cable   120 fathoms
68 league  3 mi
69 bolt    25 yd          # Of cloth; bolt length varies from bolt to bolt
70                        # 25 yd is typical
71 cubit   18 in
72 ell     45 in          # More or less standard, although other ells
73                        # have also been used.
74 hand    4 in
75 palm    3 in
76 span    9 in
77 pace    2.5ft
78 astronomicalunit 92.9 megamiles  # Is this exact?
79 au      astronomicalunit
80 rope    20 ft
81 skein   360 feet
82
83 # Surveyor's
84 furlong 1|8 mi
85 chain   1|10 furlong
86 rod     1|4 chain
87 link    1|100 chain
88
89 # Typographic
90 point    .013837 in
91 pt       point
92 bigpoint 1|72 in
93 pica     12 pt
94 didot    1238|1157 pt
95 dd       didot
96 cicero   12dd  # TeX likes to abbreviate this to cc, but cc is cubic centimeter
97 scaledpoint 1|65536 pt # Internal to TeX
98 sp       scaledpoint
99
100
101
102 # AREA
103 are     (10 m)2        # Implies `hectare'
104 acre    chain furlong  # Now you know why an acre is the size it is
105 rood    1|4 acre
106 township 36 mi2        # Who uses these?
107 barn    (1.0E-12 centimeter)2 # Particle physics
108 board   144 in3/ft     # Implies `board feet'
109
110 # VOLUME
111 cc      cm3
112 liter   (decimeter)3
113 ml      milliliter
114 stere   m3
115 floz    29.573 ml      # `floz' means `fluid ounce', which is different
116                        # from `ounce', which is a measurement of mass.
117                        # See `pound' below for more details.
118 fldram  1|8 floz
119 minim   1|60 fldram
120 cup     8 floz
121 cu      cup
122 gill    1|2 cup 
123 pint    two cups
124 quart   two pints
125 pottle  two quarts     # Yup!
126 gallon  two pottles
127 qt      quart
128 gal     gallon
129 tablespoon 1|2 floz
130 tbsp       tablespoon
131 teaspoon   1|3 tbsp
132 tsp        teaspoon
133 cordfoot   16 ft2      # NOT the same as `cord foot'.
134 cordfeet   cordfoot
135 cord       8 cordfeet
136 # Barrels are complicated.  `Barrel' here means `U.S. liquid barrel'.
137 barrel     31.5 gal
138 bbl        barrel
139 hogshead   two barrels
140 butt       two hogsheads
141 tun        two butts
142 firkin     9 gal        # American firkin, not British firkin
143 perch      24.75 ft3    # Masonry
144 puncheon   84 gal
145 # Following units contributed 20011217 Thomas R Wyant III
146 fifth 1|5 gallon
147 magnum 2.5 fifth
148 jeroboam 4 fifth
149 rehoboam 7.5 fifth
150 methuselah 10 fifth
151 shalmanazar 14 fifth
152 balthazar 20 fifth
153 nebuchadnezzar 25 fifth
154
155 # Delightful British liquid volumes; they all begin with `brit'.
156 britfloz   28.41225 ml
157 britminim  1|480 britfloz
158 britdrachm 1|8 britfloz
159 drachm     britdrachm     # U.S. drachm is spelled `dram'.
160 britgill   5 britfloz     # five, NOT four.
161 britnoggin britgill
162 noggin     britnoggin     # Yeah, as though anyone else would have a `noggin.'
163 britpint   4 britgill
164 britpt     britpint
165 britquart  2 britpint
166 britqt     britquart
167 britgallon 4 britquart
168 britgal    britgallon    
169 britpeck   2 britgal
170 britfirkin 9 britgal  
171 britkilderkin  two britfirkins
172 kilderkin britkilderkin  # kilderkin is British only
173 britbucket 4 britgal     # That's `britbucket,' not `bit bucket'.
174 bucket     britbucket    # Buckets are brit only.
175 britlast   2909.414 liters
176 last       britlast
177
178 # Dry volume
179 dry     1.164904862579 # For `dry pint,' `dry quart,' etc.
180 peck    8 dry quarts
181 bushel  4 pecks
182 bu      bushel
183 seam    8bu
184 bag     3bu 
185
186
187 imperial 1.201          # For `imperial pint,' etc.  
188
189
190 # MASS (also WEIGHT)
191 #
192 # To avoid confusing the end user, we will pretend that `pound' is
193 # a unit of mass, interconvertible with `grams'.  If you want 
194 # pounds of force, see `lbf,' below.  In this section, `pound' 
195 # really means `mass of an object that weighs one-pound at the surface
196 # of the Earth.'  That is, in this program, `slug' has its usual
197 # meaning, and `pound' is synonymous aith `slug'.
198 g             gram
199 kg            kilogram
200 metricton     kilokilogram
201 tonne         metricton
202 mg            milligram
203 grain         64.79891 mg
204 ounce         437.5 grains
205 oz            ounce
206 pound         16 oz
207 lb            pound
208 slug          lb         
209 hundredweight 112 lb  # This is the `long' hundredweight, analagous to
210                       # the long ton.  There is also a `short' hundredwight,
211                       # but it's just a hectlb, so I put this one in instead.
212 cwt           hundredweight    
213 quarter       5 cwts
214 longton       20 cwt
215 ton           longton
216 short         100|112   # Convert long tons, cwts, and quarters to short.
217 shortton      short ton
218 stone         14 lb
219 cental        100 lb
220 wey           252 lb
221 # Obscure apothecaries' measures
222 scruple       20 grains
223 dram          3 scruples
224 apothounce    480 grains
225 apothoz       apothounce
226 apothpound    12 apothoz
227 apothlb       apothpound  
228 # Troy measures (for gold and precious stones)
229 pennyweight   24 grains
230 troyoz        480 grains # We can't define `troy' as a constant,
231                          # because there are 16 oz in a lb, but only
232                          # 12 troyoz in a troylb, so at least one of
233                          # `troy oz' or `troy lb' would be wrong.
234 troylb        12 troyoz
235 carat         3.08647 grain # Metric version.  Is this useful?
236 atomicmassunit 1.6605402e-27 kg # NIST 19990301 (+/- 0.10e-33 kg)
237 amu           atomicmassunit
238 quintal       100kg      # Metric quintal.  Wasn't there another quintal?
239 elvis         255lb      # At the time of his death, the King weighed 255 lb.
240
241 # TIME
242 sec             second
243 s               second
244 minute          60 sec
245 min             minute
246 hour            60 min
247 hr              hour
248 day             24 hrs
249 dy              day                  # This will denote mean solar days
250 siderealday     0.99726957 dys    
251 week            7 days
252 wk              week
253 month           30 days
254 lunarmonth      29.530588 days       # Mean solar days
255 meanmonth       730 hours
256 mo              month
257 tropicalyear    365.24219 dys        # Mean solar days
258 siderealyear    365.25636 dys        # Mean solar days
259 leapyear        366       dys        # Mean solar days
260 calendaryear    365       dys        # Mean solar days
261 gregorianyear   365.2425  dys
262 year            tropicalyear         # Correct on average for most calculations
263 yr              years
264 fortnight       two weeks
265 decade          10 years
266 century         100 years
267 millennium      1000 years
268 millennia       millennium
269 centuries       century
270 beat            1|1000 day           # Swatch Internet Time (``Fuck the Sun'')
271 # Velocity
272 knot            1 nautical mi/hour
273 mph             1 mi/hr
274
275 # SCIENTIFIC
276 #
277 # Electromagnetic items, work, force, energy.
278 #
279 # Velocity
280 c             299792458 m/s  # NIST 19990301 EXACT
281 light         c   # Implies `light year'
282
283
284 # Absolute temperature
285 kelvin        Kelvin
286 K             Kelvin
287 Rankine       5|9 K     # This is a very funny unit
288 Ra            Rankine
289
290 # Amount of substance
291 mol           mole
292 Avogadro      6.0221367e23
293 avogadro      Avogadro
294 molecule      1 mole per Avogadro # 1 mole is an Avogagro-number of molecules
295
296 # Current
297 # The Ampere is fundamental here, defined as the constant current
298 # which, if maintained in two straight parallel conductors of infinite
299 # length, of negligible circular cross-section, and placed 1m apart in
300 # vacuum, would produce between these conductors a force equal to 2e-7
301 # newtons per meter of length.
302 Ampere        ampere
303 amp           ampere
304 abampere      10 amps
305 abamp         abampere
306 statampere    3.335635e-11 abamperes
307 statamp       statampere
308
309 # What is this called?  Is it capitalized?  Is there an abbreviation?
310 gilbert       0.79577472 ampere turns
311
312 # Electrostatic charge
313 Coulomb       ampere sec
314 coulomb       Coulomb
315 coul          Coulomb
316 C             Coulomb
317 electron      1.60217733e-19 C  # Charge on the electron; implies electron-volts
318 e             electron 
319 abcoulomb     10C
320 statcoulomb   3.335635e-11 abcoulomb
321
322
323 # Force
324 Newton        kg m/s2
325 newton        Newton
326 N             newton
327 dyne          g cm/s2
328 grav          9.8 m/s2  # Acceleration due to gravity
329 gee           grav
330 # Actually the accleration varies with altitude and latitude, 
331 # from 9.78039 m/s2 at the equator to 9.83217 m/s2 at the poles.
332 # This mean value corresponds to a latitude of about 38 degrees.
333 lbf           lb grav
334
335 # Pressure
336 Pascal        N/m2
337 pascal        Pascal
338 Pa            pascal
339 atmosphere    101325 N/m2  # NIST 20010518 EXACT
340 atm           atmosphere
341 bar           megadyne/cm2  # Implies `millibars'
342 mercury       1|760 atm/mm # Implies `mm mercury' and `inches mercury'
343 hg            mercury
344 torricelli    mm hg
345 torr          torricelli
346 water         .0295 atm/ft # Implies `feet water'
347 barye         dyne/cm2
348 air           6.6083e-5 atm/foot  # At 60 deg.F; Implies `feet air'
349
350 # Work and energy
351 Joule         newton-meter
352 joule         Joule
353 J             joule
354 footpound     ft-lbf   # foot-pound won't work, because `pound' is a mass
355 calorie       4.186 J
356 cal           calorie
357 kcal          kilocalorie
358 britishthermalunit  1054.8 J
359 btu           britishthermalunit
360 erg           dyne-cm
361 # Kilowatt-hour (kWh) will be implied by `Watt'.
362
363
364 # Power
365 Watt          J/sec
366 watt          Watt
367 W             Watt
368 horsepower    550 ft-lbf/s
369
370 # Electric potential
371 Volt          W/amp
372 volt          Volt
373 V             Volt
374 abvolt        1|100 microvolt
375 statvolt      2.997930e10 V
376
377 # Frequency
378 cycle         1           # For `cycles per second'
379 Hertz         cycles per second
380 Hz            Hertz
381 hz            Hz
382
383 # Inductance
384 Henry         volt s/amp
385 henry         Henry
386 H             Henry
387 abhenry       1.0e-9 henry
388 Henries       Henry       # For plural
389 henries       Henry
390 stathenry     8.987584e11 henries
391 stathenries   stathenry
392
393 # Etc.
394 Weber         volt s
395 weber         Weber
396 Wb            weber
397 Tesla         Wb/m2
398 tesla         Tesla
399 T             tesla
400 Oersted       1|4 pi kiloamp/m
401 oersted       Oersted
402 Oe            oersted
403 Maxwell       1.0e-8 Wb
404 maxwell       Maxwell
405 Mx            Maxwell
406 Gauss         1.0e-4 T
407 gauss         Gauss
408 # We won't use G for Gauss because it is more important to 
409 # use it for the universal gravitational constant
410
411 # Capacitance
412 # `farad' is *not* an abbreviation for `Faraday' as far as I can tell.
413 farad         amp sec / volt
414 F             farad
415 abfarad       1.0e9 farad
416 statfarad     1.112646e-13 farad
417
418 # Resistance
419 Ohm           volt/amp
420 ohm           Ohm
421 abohm         1.0e-9 ohm
422 statohm       8.987584e11 Ohms
423
424 # Conductance
425 mho           1/ohm
426 abmho         1/abohm
427 Siemens       mho
428 siemens       Siemens
429
430 # Misc
431 Angstrom      1.0e-10 m
432 angstrom      Angstrom
433 G             6.67259e-11 N m2/kg2 # Newton gravitational constant NIST19990301
434 lightyear     light year    # Common abbreviation
435 eV            e V           # Electron volts
436 ev            eV
437 kev           kiloeV
438 Mev           megaeV
439 Gev           gigaeV
440 Tev           teraeV
441 energy        c2 # You can ask for `1 gram energy' and get
442                  # the amount of energy equivalent to 
443                  # 1 gram according to e=mc2.
444                  # Check: 1amu energy == 931.16 Mev?
445 Franklin      (10/c) C cm/sec
446 Fr            Franklin
447 franklin      Franklin
448 Biot          10 amp
449 Bi            Biot
450 biot          Biot
451
452 # Viscosity - Maybe someone who understands this better can check.
453 poise         g/(cm s) # Named after M. Poiseuille
454 rhe           1/poise
455 reyn          (lbf s)/in2
456 # Kinematic viscosity = viscosity per unit density
457 stoke         cm2/s
458
459 # Refrigeration - Maybe someone who understands this better can check.
460 refrigeration 288000 btu/ton
461 ice           tons refrigeration / 2009.1 lb
462
463 # Light
464 # The candela is fundamental here.  Prior to 1979, it was defined as
465 # the luminous intensity of a black body at the temperature of
466 # solidification of platinum, whose radiating surface is 1/60 cm2.  It
467 # is now the luminous intensity, in a given direction, of a source
468 # that emits monochromatic radiation of frequency 540e12 Hz and that
469 # has a radiant intensity in that direction of 1|683 W/sr
470 cd            candela
471 sr            steradian
472 lumen         candela sr
473 lm            lumen
474 lux           lm/m2
475 lx            lux
476 candlepower   12.566370 lumens
477 candle        candela # ``International standard candle''
478 Hefner        0.90 candles # This was the German standard in early C20.
479 hefner        Hefner
480 Lambert       lm/cm2
481 lambert       Lambert
482 footcandle    lm/ft2  # NOT the same as foot-candle.
483 phot          1.0e4 lx
484 stilb         candle/m2   # Same as a pi lambert
485
486 # Various important physical constants
487 # I got this stuff from physics.nist.gov on 19990301.
488 h             6.6260755e-27 erg-sec   # Planck's constant
489 hbar          h/(2 pi)
490 plancklength  1.61605e-35 m
491 planckmass    2.17671e-8 kg
492 plancktime    5.39056e-44 sec
493 # Let's reserve `Planck' for a while longer until I can decide if
494 # they'd be useful in `planck time' etc.
495 permeability  4*pi*1.0e-7 H/m     # Magnetic permeability of vacuum constant 
496 permittivity  8.854187817e-12 F/m # Electric permittivity of vacuum constant 
497 protonmass    1.6726231e-27 kg
498 neutronmass   1.6749286e-27 kg
499 electronmass  9.1093897e-31 kg 
500 finestructure 7.29735308e-3 # Rl
501 # Electron charge is up above under `electrostatic'.
502 # There's no reason to get too obscure here because if someone wants
503 # they can make up an `obscure physical constants' file that
504 # physiscists could load in if they wanted to.  So I've omitted stuff
505 # like the magnetic moment of the muon.
506
507 # ANGULAR
508 rad             radian
509 circle          2 pi radians
510 revolution      circle       # For revolutions / sec
511 rev             revolution 
512 rpm             revolutions per minute
513 quadrant        1|4 circle
514 degree          1|360 circle
515 arcminute       1|60 degree
516 arcsecond       1|60 arcminute
517 arcmin          arcminute
518 arcsec          arcsecond
519 sphere          4 pi steradians
520 grade           1|100 quadrant
521 grad            grade
522
523 # PAPER
524 quire           50 sheets
525 ream            10 quires
526
527 # INFORMATION
528 byte            8 bits
529 nybble          half byte
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 thruppence           3 pence   
627 threepence           3 pence   
628 sixpence             6 pence   
629 crown                5 shillings  # Implies `half crown'
630 guinea               21 shillings
631 florin               2 shillings
632
633
634 # 18th century French coinage. References:
635 # http://home.nordnet.fr/~jlmorel/mesures.html and reverse-engineered
636 # from The Three Musketeers
637 # 20011227 Thomas R Wyant III
638 livre franc ### 3 Musketeers has francs!
639             ### Now, you too can convert Louis d'Or to U.S. Dollars!
640 sou 1|20 livre
641 crown 3 livres # It's ecu in French, not to be confused with ECU.
642 pistole 10 livres
643 double 2    # 3 Musketeers refers to double pistoles, so ...
644 louis 24 livres
645 ### Now if only I had good definitions for reals and doubloons ...
646
647
648 # For `register tons'
649 register        100 ft3/ton
650 registerton     register ton
651
652 # What's missing?
653 # bequerel (nucleotide radioactivity): Bq = k/s         k=1??
654 # gray (absorbed dose): Gy = k J/kg                     k=1??
655 # sievert (dose equivalent): Sv = k J/kg                        k=1??
656 # curie: Ci = 3.3e10 Bq
657 # roentgen: R = 2.58e-4 C/kg
658 # rad: rad = centigray
659 # rem: rem = centisievert