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