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