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