8e247fbb9d297f2a66d40a70f0826378853cdeb2
[dragonfly.git] / usr.bin / units / units.lib
1 / $FreeBSD: src/usr.bin/units/units.lib,v 1.18 2008/08/07 05:35:01 edwin Exp $
2 / $DragonFly: src/usr.bin/units/units.lib,v 1.4 2008/08/12 09:28:22 matthias Exp $
3
4 / primitive units
5
6 m                       !a!
7 kg                      !b!
8 sec                     !c!
9 coul                    !d!
10 candela                 !e!
11 usdollar                !f!
12 euro                    !g!
13 bit                     !h!
14 erlang                  !i!
15 K                       !j!
16
17 / prefixes
18
19 yotta-                  1e24
20 zetta-                  1e21
21 exa-                    1e18
22 peta-                   1e15
23 tera-                   1e12
24 giga-                   1e9
25 mega-                   1e6
26 myria-                  1e4
27 kilo-                   1e3
28 hecto-                  1e2
29 deka-                   1e1
30 deca-                   deka
31 deci-                   1e-1
32 centi-                  1e-2
33 milli-                  1e-3
34 micro-                  1e-6
35 nano-                   1e-9
36 pico-                   1e-12
37 femto-                  1e-15
38 atto-                   1e-18
39 zopto-                  1e-21
40 zepto-                  zopto
41 yocto-                  1e-24
42
43 semi-                   .5
44 demi-                   .5
45
46 Y-                      yotta
47 Z-                      zetta
48 E-                      exa
49 P-                      peta
50 T-                      tera
51 G-                      giga
52 M-                      mega
53 k-                      kilo
54 h-                      hecto
55 da-                     deka
56 d-                      deci
57 c-                      centi
58 m-                      milli
59 n-                      nano
60 p-                      pico
61 f-                      femto
62 a-                      atto
63 z-                      zopto
64 y-                      yocto
65
66 / binary prefixes introduced in 1999
67 exbi-                   1152921504606846976
68 pebi-                   1125899906842624
69 tebi-                   1099511627776
70 gibi-                   1073741824
71 mebi-                   1048576
72 kibi-                   1024
73
74 Ei-                     exbi
75 Pi-                     pebi
76 Ti-                     tebi
77 Gi-                     gibi
78 Mi-                     mebi
79 Ki-                     kibi
80
81 / constants
82
83 fuzz                    1
84 pi                      3.14159265358979323846
85 c                       2.99792458e+8 m/sec
86 g0                      9.80665 m/sec2
87 g                       g0
88 bigG                    6.67428e-11 m3/kg/s2
89 AU                      1.49597870691e+11 m fuzz
90 au                      AU
91 mole                    6.0221417930e+23 fuzz
92 e                       1.6021917e-19 coul fuzz
93 energy                  c2
94 force                   g
95 mercury                 1.3332239e+5 kg/m2-sec2
96 hg                      mercury
97 mmHg                    0.001 m hg
98 #mu                     4.e-7 pi-N/A2
99 epsilon                 1.0 /mu/c2
100 alpha                   0.5 mu-c-e2/planck
101 planck                  6.6260755e-34 joule-sec
102 hbar                    0.5 planck/pi
103 electronmass            9.1093821545-31 kg
104 protonmass              1.6726217129-27 kg
105 neutronmass             1.6749272928-27 kg
106
107 / dimensionless
108
109 radian                  .5 / pi
110 degree                  1|180 pi-radian
111 circle                  2 pi-radian
112 turn                    2 pi-radian
113 revolution              turn
114 rev                     turn
115 grade                   .9 degree
116 arcdeg                  1 degree
117 arcmin                  1|60 arcdeg
118 ccs                     1|36 erlang
119 arcsec                  1|60 arcmin
120
121 steradian               radian2
122 sphere                  4 pi-steradian
123 sr                      steradian
124
125 / Time
126
127 second                  sec
128 s                       sec
129 minute                  60 sec
130 min                     minute
131 hour                    60 min
132 hr                      hour
133 day                     24 hr
134 da                      day
135 week                    7 day
136 year                    365.24219879 day fuzz
137 yr                      year
138 month                   1|12 year
139 us                      microsec
140
141 / Mass
142
143 gram                    millikg
144 gm                      gram
145 metricton               kilokg
146
147 / Avoirdupois
148
149 lb                      .45359237 kg
150 pound                   lb
151 lbf                     lb g
152 ounce                   1|16 lb
153 oz                      ounce
154 dram                    1|16 oz
155 dr                      dram
156 grain                   1|7000 lb
157 gr                      grain
158 shortton                2000 lb
159 ton                     shortton
160 longton                 2240 lb
161
162 / Apothecary
163
164 scruple                 20 grain
165 apdram                  60 grain
166 apounce                 480 grain
167 appound                 5760 grain
168 troypound               appound
169
170 / Mining
171
172 troyounce               apounce
173 troz                    apounce
174 pennyweight             1|20 troz
175 pwt                     pennyweight
176 dwt                     pennyweight
177
178 / Length
179
180 meter                   m
181 micron                  micrometer
182 angstrom                decinanometer
183 ao                      0.25 alpha/pi/rydbergconst
184
185 inch                    2.54 cm
186 in                      inch
187 foot                    12 in
188 feet                    foot
189 ft                      foot
190 yard                    3 ft
191 yd                      yard
192 rod                     5.5 yd
193 rd                      rod
194 mile                    5280 ft
195 mi                      mile
196
197 british                 1200|3937 m/ft
198 nmile                   1852 m
199
200 acre                    4840 yd2
201
202 cc                      cm3
203 liter                   kilocc
204 ml                      milliliter
205
206 / US Liquid
207
208 gallon                  231 in3
209 imperial                1.20095
210 gal                     gallon
211 quart                   1|4 gal
212 qt                      quart
213 pint                    1|2 qt
214 pt                      pint
215
216 floz                    1|16 pt
217 fldr                    1|8 floz
218 shot                    3|2 floz
219
220 / US Dry
221
222 dry                     268.8025 in3/gallon fuzz
223 peck                    8 dry-quart
224 pk                      peck
225 bushel                  4 peck
226 bu                      bushel
227 chaldron                36 bushel
228
229 / British
230
231 brgallon                277.420 in3 fuzz
232 brquart                 1|4 brgallon
233 brpint                  1|2 brquart
234 brfloz                  1|20 brpint
235 brpeck                  554.84 in3 fuzz
236 brbushel                4 brpeck
237 brhundredweight         112 lb
238
239 / Bottles
240
241 bottle                  750 milliliter
242 /bottle                 fifth
243
244 miniature               100 milliliter
245 split                   1|4 bottle
246 half                    1|2 bottle
247 magnum                  2 bottle
248 jeroboam                4 bottle
249 rehoboam                6 bottle
250 methuselah              8 bottle
251 salmanazar              12 bottle
252 balthazar               16 bottle
253 nebuchadnezzar          20 bottle
254 sovereign               34 bottle
255
256 / Bottles - alternate names and spellings
257
258 pony                    split
259 fillette                half
260 tappit-hen              3 imperial
261 rheoboam                rehoboam
262 shalmaneser             salmanazar
263
264 / Russian
265 berkovets               10 pood
266 pood                    40 funt
267 funt                    0.40951 kg
268 lot                     1|32 funt
269 zolotnik                1|3 lot
270 dolya                   1|96 zolotnik
271 rumile                  7 verst
272 mezhevayaverst          2 verst
273 verst                   1066.8 m
274 sazhen                  1|500 verst
275 kosayasazhen            1|430.2 verst
276 arshin                  1|1500 verst
277 / is not exactly defined
278 ruell                   16.54 in
279 liniya                  1|10 in
280 vershok                 1.75 in
281 pyad                    7 in
282 vedro                   12.3 liter
283 shtoff                  1|10 vedro
284 vinebottle              1|16 vedro
285 vodkabottle             1|20 vedro
286 charka                  1|100 vedro
287 shkalik                 1|200 vedro
288 desyatina_state         109.3 are
289 desyatina_farmery       0.75 desyatina_state
290 sqverst                 104.2 desyatina_state
291 sqarshin                1|21600 desyatina_state
292 sqfoot                  1|117600 desyatina_state
293
294 / Energy Work
295
296 newton                  kg-m/sec2
297 nt                      newton
298 N                       newton
299 joule                   nt-m
300 J                       joule
301 cal                     4.1868 joule
302
303 / Electrical
304
305 coulomb                 coul
306 C                       coul
307 ampere                  coul/sec
308 A                       ampere
309 amp                     ampere
310 watt                    joule/sec
311 W                       watt
312 volt                    watt/amp
313 ohm                     volt/amp
314 mho                     /ohm
315 farad                   coul/volt
316 F                       farad
317 henry                   sec2/farad
318 H                       henry
319 weber                   volt-sec
320 Wb                      weber
321
322 / Light
323
324 cd                      candela
325 lumen                   cd sr
326 lux                     cd sr/m2
327
328 / EMU currencies have constant exchange rate against Euro since 1.1.1999.
329 / See http://en.wikipedia.org/wiki/Euro for details.
330 austriaschilling        1|13.7603 euro
331 belgiumfranc            1|40.3399 euro
332 finlandmarkka           1|5.94573 euro
333 francefranc             1|6.55957 euro
334 germanymark             1|1.95583 euro
335 greecedrachma           1|340.750 euro
336 irelandpunt             1|0.787564 euro
337 italylira               1|1936.27 euro
338 luxembourgfranc         1|40.3399 euro
339 netherlandsguilder      1|2.20371 euro
340 portugalescudo          1|200.482 euro
341 spainpeseta             1|166.386 euro
342 sloveniantolar          1|239.640 euro
343 cypriotpound            1|0.585274 euro
344 malteselira             1|0.429300 euro
345 slovakkoruna            1|30.1260 euro
346
347 / These ones are pegged to the Euro
348 / See http://en.wikipedia.org/wiki/Euro for details.
349 bosniaherzegovinamark   1|1.95583 euro
350 bulgarianlev            1|1.95583 euro
351 capeverdeanescudo       1|110.265 euro
352 centralafricancfafranc  1|655.957 euro
353 comorosfranc            1|491.96775 euro
354 danishkrone             1|7.46038 euro
355 estoniakroon            1|15.6466 euro
356 lithuanianlitas         1|3.45280 euro
357 pacificfrancexchange    1|0.00838 euro
358 westafricancfafranc     1|655.957 euro
359
360 / These ones are pegged on the US Dollar
361 / See http://en.wikipedia.org/wiki/USD for details.
362 dollar                  usdollar
363 arubanflorin            1|1.75 usdollar
364 bahamiandollar          1|1 usdollar
365 bahrainidinar           1|0.376 usdollar
366 barbadiandollar         1|2 usdollar
367 belizedollar            1|2 usdollar
368 belarusianruble         1|2135 usdollar
369 bermudiandollar         1|1 usdollar
370 caymanislandsdollar     1.2 usdollar
371 cubanconvertiblepeso    1.08 usdollar
372 djiboutianfranc         1|177.721 usdollar
373 eastcaribbeandollar     1|2.7 usdollar
374 eritreannakfa           1|15 usdollar
375 hongkongdollar          1|7.80 usdollar
376 macanesepatacas         1|1.03 hongkongdollar
377 jordaniandinar          1|0.709 usdollar
378 lebanesepound           1|1507.5 usdollar
379 maldivianrufiyaa        1|12.8 usdollar
380 netherlandsantilleanguilder     1|1.79 usdollar
381 omanirial               2.6008 usdollar
382 qataririyal             1|3.64 usdollar
383 saudiriyal              1|3.75 usdollar
384 unitedarabemiratesdirham        1|3.6725 usdollar
385
386 bosniamark              bosniaherzegovinamark
387 cfafranc                centralafricancfafranc
388 cfpfranc                pacificfrancexchange
389 drachma                 greecedrachma
390 escudo                  portugalescudo
391 franc                   francefranc
392 guilder                 netherlandsguilder
393 herzegovinamark         bosniaherzegovinamark
394 hollandguilder          netherlandsguilder
395 lira                    italylira
396 mark                    germanymark
397 markka                  finlandmarkka
398 peseta                  spainpeseta
399 rand                    southafricarand
400
401 / computer
402
403 baud                    bit/sec
404 nibble                  4 bit
405 nybble                  nibble
406 byte                    8 bit
407 word                    2 byte
408 block                   512 byte
409 kbyte                   1024 byte
410 megabyte                1024 kbyte
411 gigabyte                1024 megabyte
412 terabyte                1024 gigabyte
413 petabyte                1024 terabyte
414 exabyte                 1024 petabyte
415 zettabyte               1024 exabyte
416 yottabyte               1024 zettabyte
417 kilobyte                kbyte
418 meg                     megabyte
419
420
421 / Trivia
422
423 %                       1|100
424 abampere                10 ampere
425 admiraltyknot           6080 ft/hr
426 apostilb                cd/pi-m2
427 are                     1e+2 m2
428 asb                     apostilb
429 arpentcan               27.52 mi
430 arpentlin               191.835 ft
431 astronomicalunit        au
432 atmosphere              1.01325e+5 nt/m2
433 atm                     atmosphere
434 atomicmassunit          1.66053878283e-27 kg fuzz
435 # year                  3.15569259747e7 sec fuzz
436 amu                     atomicmassunit
437 bag                     94 lb
438 bakersdozen             13
439 bar                     1e+5 nt/m2
440 barie                   1e-1 nt/m2
441 barleycorn              1|3 in
442 barn                    1e-28 m2
443 oilbarrel               42 gal
444 barrel                  oilbarrel
445 barye                   1e-1 nt/m2
446 baryl                   microbar
447 bev                     1e+9 e-volt
448 biot                    10 amp
449 blondel                 cd/pi-m2
450 boardfoot               144 in3
451 bolt                    40 yd
452 bottommeasure           1|40 in
453 britishthermalunit      1.05506e+3 joule fuzz
454 btu                     britishthermalunit
455 refrigeration           12000 btu/ton-hour
456 buck                    usdollar
457 cable                   720 ft
458 caliber                 1e-2 in
459 calorie                 cal
460 carat                   205 milligram
461 caratgold               1|24
462 cent                    centidollar
463 cental                  100 lb
464 centesimalminute        1e-2 grade
465 centesimalsecond        1e-4 grade
466 century                 100 year
467 cfs                     ft3/sec
468 chain                   66 ft
469 circularinch            1|4 pi-in2
470 circularmil             1e-6|4 pi-in2
471 clusec                  1e-8 mm-hg m3/s
472 coomb                   4 bu
473 cord                    128 ft3
474 cordfoot                cord
475 crith                   9.06e-2 gm
476 cubit                   18 in
477 cup                     1|2 pt
478 curie                   3.7e+10 /sec
479 dalton                  amu
480 decade                  10 yr
481 dioptre                 /m
482 displacementton         35 ft3
483 doppelzentner           100 kg
484 dozen                   12
485 drop                    .03 cm3
486 dyne                    cm-gm/sec2
487 electronvolt            e-volt
488 ell                     45 in
489 engineerschain          100 ft
490 engineerslink           100|100 ft
491 equivalentfootcandle    lumen/pi-ft2
492 equivalentlux           lumen/pi-m2
493 equivalentphot          cd/pi-cm2
494 erg                     cm2-gm/sec2
495 ev                      e-volt
496 faraday                 9.6485309e+4 coul
497 fathom                  6 ft
498 fermi                   1e-15 m
499 fifth                   4|5 qt
500 fin                     5 usdollar
501 finger                  7|8 in
502 firkin                  9 gal
503 footcandle              lumen/ft2
504 footlambert             cd/pi-ft2
505 fortnight               14 da
506 franklin                3.33564e-10 coul
507 frigorie                kilocal
508 furlong                 220 yd
509 galileo                 1e-2 m/sec2
510 gamma                   1e-9 weber/m2
511 gauss                   1e-4 weber/m2
512 G                       gauss
513 geodeticfoot            british-ft
514 geographicalmile        1852 m
515 gilbert                 2.5 amp/pi
516 gill                    1|4 pt
517 gross                   144
518 gunterschain            22 yd
519 hand                    4 in
520 hartree                 2 rydberg
521 head                    water
522 hectare                 1e+4 m2
523 hefnercandle            .92 cd
524 hertz                   /sec
525 Hz                      hertz
526 hogshead                63 gallon
527 hd                      hogshead
528 homestead               1|4 mi2
529 horsepower              735.50 watt
530 hp                      horsepower
531 hubble                  1e9 ly
532 hyl                     gm force sec2/m
533 hz                      /sec
534 imaginarycubicfoot      1.4 ft3
535 jansky                  1e-26 W/m2-Hz
536 Jy                      jansky
537 karat                   1|24
538 kayser                  /cm
539 key                     kg
540 kilderkin               18 gal
541 knot                    nmile/hr
542 kn                      knot
543 lambert                 cd/pi-cm2
544 Lb                      lambert
545 langley                 cal/cm2
546 last                    80 bu
547 league                  3 mi
548 lightyear               c-yr
549 ly                      lightyear
550 line                    1|12 in
551 link                    66|100 ft
552 longhundredweight       112 lb
553 longquarter             28 lb
554 lusec                   1e-6 mm-hg m3/s
555 m_earth                 5.97223e24 kg
556 m_moon                  7.34e22 kg
557 m_sun                   1.98843e30 kg
558 mach                    331.46 m/sec
559 marineleague            3 nmile
560 maxwell                 1e-8 weber
561 Mx                      maxwell
562 metriccarat             200 milligram
563 mgd                     megagal/day
564 mh                      millihenry
565 mil                     1e-3 in
566 millennium              1000 year
567 minersinch              1.5 ft3/min
568 minim                   1|60 fldr
569 mo                      month
570 mpg                     mile/gal
571 mph                     mile/hr
572 nail                    1|16 yd
573 nauticalmile            nmile
574 nit                     cd/m2
575 noggin                  1|8 qt
576 nox                     1e-3 lux
577 oersted                 2.5e+2 amp/m/pi
578 Oe                      oersted
579 pace                    36 in
580 pair                    2
581 palm                    3 in
582 parasang                3.5 mi
583 parsec                  AU-radian/arcsec
584 pascal                  nt/m2
585 Pa                      pascal
586 pc                      parsec
587 percent                 %
588 perch                   rd
589 phot                    lumen/cm2
590 pica                    1|6 in
591 pieze                   1e+3 nt/m2
592 pipe                    4 barrel
593 point                   1|72 in
594 poise                   gm/cm-sec
595 P                       poise
596 pole                    rd
597 pond                    9.80665e-3 nt
598 poundal                 ft-lb/sec2
599 pdl                     poundal
600 proof                   1|200
601 psi                     lb-g/in2
602 quarter                 9 in
603 quartersection          1|4 mi2
604 quintal                 100 kg
605 quire                   25
606 r_earth                 6.378e8 cm
607 r_moon                  1.738e7 cm
608 r_sun                   6.9599e10 cm
609 rackunit                1.75 in
610 rad                     100 erg/gm
611 ream                    500
612 registerton             100 ft3
613 rem                     0.01 J/kg
614 rhe                     10 m2/nt-sec
615 rontgen                 2.58e-4 curie/kg
616 roentgen                rontgen
617 rood                    1.21e+3 yd
618 rope                    20 ft
619 RU                      rackunit
620 rutherford              1e+6 /sec
621 rydbergconst            0.5 elctronmass-c-alpha2/planck
622 rydberg                 rydbergconst-planck-c
623 sabin                   1 ft2
624 sack                    3 bu
625 score                   20
626 seam                    8 bu
627 section                 mi2
628 shed                    1e-24 barn
629 shippington             40 ft3
630 shorthundredweight      100 lb
631 shortquarter            25 lb
632 siemens                 /ohm
633 sigma                   microsec
634 skein                   120 yd
635 skot                    1e-3 apostilb
636 slug                    lb-g-sec2/ft
637 smoot                   67 in
638 span                    9 in
639 spat                    4 pi sr
640 spindle                 14400 yd
641 square                  100 ft2
642 stere                   m3
643 sthene                  1e+3 nt
644 stilb                   cd/cm2
645 sb                      stilb
646 stoke                   1e-4 m2/sec
647 stone                   14 lb
648 strike                  2 bu
649 surveyfoot              british-ft
650 surveyyard              3 surveyfoot
651 surveyorschain          66 ft
652 surveyorslink           66|100 ft
653 tablespoon              4 fldr
654 tbl                     tablespoon
655 tbsp                    tablespoon
656 teaspoon                4|3 fldr
657 tesla                   weber/m2
658 T                       tesla
659 therm                   1e+5 btu
660 thermie                 1e+6 cal
661 timberfoot              ft3
662 tnt                     4.6e+6 m2/sec2
663 tonne                   1e+6 gm
664 torr                    mm hg
665 township                36 mi2
666 tsp                     teaspoon
667 tun                     8 barrel
668 water                   gram g / cc
669 wey                     40 bu
670 weymass                 252 lb
671 Xunit                   1.00206e-13 m
672 k                       1.38047e-16 erg/degC
673
674
675 degC                    K
676 kelvin                  K
677 brewster                1e-12 m2/newton
678 degF                    5|9 degC
679 degreesrankine          degF
680 degrankine              degreesrankine
681 degreerankine           degF
682 degreaumur              10|8 degC
683 drachm                  60 grain
684 poncelet                100 kg m g / sec
685 denier                  .05|450 gram / m
686 tex                     .001 gram / m
687 englishell              45 inch
688 scottishell             37.2 inch
689 flemishell              27 inch
690 V                       volt
691 eV                      e V
692 bohrradius              hbar2-C2/8.988e9 N m2-e2-electronmass
693 becquerel               1|3.7e10 curie
694 fresnel                 1e12 hertz
695 statcoul                1|2.99792458e9 coul
696 statamp                 1|2.99792458e9 amp
697 statvolt                2.99792458e2 volt
698 statcoulomb             statcoul
699 statampere              statamp
700 debye                   3.33564e-30 coul-m
701 pulsatance              2 pi/sec
702 rpm                     rev/minute
703 rps                     rev/sec
704 kilohm                  kiloohm
705 megohm                  megaohm
706 siderealyear            365.256360417 day
707 siderealday             23.934469444 hour
708 siderealhour            1|24 sidereal day
709 lunarmonth              29.5305555 day
710 synodicmonth            lunarmonth
711 siderealmonth           27.32152777 day
712 tropicalyear            year
713 solaryear               year
714 lunaryear               12 lunarmonth
715 cran                    37.5 brgallon
716 kip                     1000 lbf
717 frenchfoot              16|15 ft
718 frenchfeet              frenchfoot
719 toise                   6 frenchfeet
720 sievert                 8.4 rontgen
721 candle                  1.02 candela
722 militarypace            2.5 feet
723 metre                   meter
724 litre                   liter
725 gramme                  gram
726 iudiptheria             62.8 microgram
727 iupenicillin            .6 microgram
728 iuinsulin               41.67 microgram
729 cottonyarncount         2520 ft/pound
730 linenyarncount          900 ft/pound
731 worstedyarncount        1680 ft/pound
732 metricyarncount         meter/gram
733 jewlerspoint            2 milligram