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