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