[BACK]Return to units.lib CVS log [TXT][DIR] Up to [local] / src / usr.bin / units

Diff for /src/usr.bin/units/units.lib between version 1.3 and 1.4

version 1.3, 1996/06/26 05:42:16 version 1.4, 1999/06/13 16:31:18
Line 54 
Line 54 
 c-                      centi  c-                      centi
 m-                      milli  m-                      milli
 p-                      pico  p-                      pico
   n-                      nano
 f-                      femto  f-                      femto
 a-                      atto  a-                      atto
 z-                      zopto  z-                      zopto
Line 63 
Line 64 
   
 fuzz                    1  fuzz                    1
 pi                      3.14159265358979323846  pi                      3.14159265358979323846
 c                       2.99792458e+8 m/sec fuzz  c                       2.99792458e+8 m/sec
 g                       9.80665 m/sec2  g                       9.80665 m/sec2
 au                      1.49597871e+11 m fuzz  AU                      1.49597870e+11 m fuzz
 mole                    6.022169e+23 fuzz  au                      AU
 e                       1.6021917e-19 coul fuzz  mole                    6.0221367e+23 fuzz
   e                       1.60217733e-19 coul fuzz
   / Next two to be multiplied by mass
 energy                  c2  energy                  c2
 force                   g  force                   g
 mercury                 1.33322e+5 kg/m2-sec2  mercury                 1.3332239e+5 kg/m2-sec2
 hg                      mercury  hg                      mercury
   mmHg                    0.001 m hg
   
   mu                      4.e-7 pi-N/A2
   epsilon                 1.0 /mu/c2
   alpha                   0.5 mu-c-e2/planck
   planck                  6.6260755e-34 joule-sec
   hbar                    0.5 planck/pi
   electronmass            9.1093897e-31 kg
   protonmass              1.6726231e-27 kg
   neutronmass             1.6749286e-27 kg
   
   
 / dimensionless  / dimensionless
   
 radian                  .5 / pi  radian                  .5 / pi
 degree                  1|180 pi-radian  degree                  1|180 pi-radian
 circle                  2 pi-radian  circle                  2 pi-radian
 turn                    2 pi-radian  turn                    2 pi-radian
 revolution                      turn  revolution              turn
 rev                     turn  rev                     turn
 grade                   .9 degree  grade                   .9 degree
 arcdeg                  1 degree  arcdeg                  1 degree
Line 102 
Line 116 
 day                     24 hr  day                     24 hr
 da                      day  da                      day
 week                    7 day  week                    7 day
 year                    365.24219879 day fuzz  year                    3.15569259747e7 sec fuzz
 yr                      year  yr                      year
 month                   1|12 year  month                   1|12 year
 ms                      millisec  ms                      millisec
Line 141 
Line 155 
 / Length  / Length
   
 meter                   m  meter                   m
 cm                      centimeter  
 mm                      millimeter  
 km                      kilometer  
 nm                      nanometer  
 micron                  micrometer  micron                  micrometer
 angstrom                decinanometer  angstrom                decinanometer
   ao                      0.25 alpha/pi/rydbergconst
   
 inch                    2.54 cm  inch                    2.54 cm
 in                      inch  in                      inch
Line 161 
Line 172 
 mi                      mile  mi                      mile
   
 british                 1200|3937 m/ft  british                 1200|3937 m/ft
   / Assume we do not want the prefix n- with mile
 nmile                   1852 m  nmile                   1852 m
   
 acre                    4840 yd2  acre                    4840 yd2
Line 206 
Line 218 
 nt                      newton  nt                      newton
 N                       newton  N                       newton
 joule                   nt-m  joule                   nt-m
   J                       joule
 cal                     4.1868 joule  cal                     4.1868 joule
   
 / Electrical  / Electrical
Line 214 
Line 227 
 C                       coul  C                       coul
 ampere                  coul/sec  ampere                  coul/sec
 amp                     ampere  amp                     ampere
   A                       amp
 watt                    joule/sec  watt                    joule/sec
   W                       watt
 volt                    watt/amp  volt                    watt/amp
 ohm                     volt/amp  ohm                     volt/amp
 mho                     /ohm  mho                     /ohm
 farad                   coul/volt  farad                   coul/volt
   F                       farad
 henry                   sec2/farad  henry                   sec2/farad
   H                       henry
 weber                   volt-sec  weber                   volt-sec
   Wb                      weber
   
 / Light  / Light
   
Line 228 
Line 246 
 lumen                   cd sr  lumen                   cd sr
 lux                     cd sr/m2  lux                     cd sr/m2
   
 / Wall Street Journal, July 2, 1993  / Wall Street Journal, June 10, 1999, with rounding
   
 $                       dollar  $                       dollar
 argentinapeso           $  argentinapeso           $
 australiadollar         .66 $  australiadollar         .66 $
 austriaschilling        .83 $  austriaschilling        .076 $
 bahraindinar            2.6522 $  bahraindinar            2.6522 $
 belgiumfranc            .028 $  belgiumfranc            .026 $
 brazilcruzeiro          .000019 $  brazilreal              .57 $
 britainpound            1.49 $  britainpound            1.60 $
 canadadollar            .77 $  canadadollar            .68 $
 czechkoruna             .034 $  chilepeso               .002 $
 chilepeso               .0025 $  chinarenminbi           .1208 $
 chinarenminbi           .174856 $  colombiapeso            .000596 $
 colombiapeso            .001495 $  czechkoruna             .028 $
 denmarkkrone            .15 $  denmarkkrone            .14 $
 ecuadorsucre            .000539 $  ecuadorsucre            .000093 $
 finlandmarkka           .17 $  finlandmarkka           .18 $
 francefranc             .17 $  francefranc             .16 $
 germanymark             .58 $  germanymark             .5358 $
 greatbritainpound       britainpound  greatbritainpound       britainpound
 greecedrachma           .0043 $  greecedrachma           .00323 $
 hongkongdollar          .13  $  hongkongdollar          .13  $
 hungaryforint           .011 $  hungaryforint           .0042 $
 indiarupee              .03211 $  indiarupee              .02326 $
 indonesiarupiah         .0004782 $  indonesiarupiah         .000129 $
 irelandpunt             1.43 $  irelandpunt             1.33 $
 israelshekel            .3642 $  israelshekel            .245 $
 italylira               .00064 $  italylira               .00054 $
 japanyen                .0093 $  japanyen                .0084 $
 jordandinar             1.4682 $  jordandinar             1.41 $
 kuwaitdinar             3.3173 $  kuwaitdinar             3.27 $
 lebanonpound            .000578 $  lebanonpound            .000663 $
 malaysiaringgit         .338 $  malaysiaringgit         .263 $
 maltalira               2.6042 $  maltalira               2.48 $
 mexicopeso              .3205128 $  mexicopeso              .1044 $
 netherlandguilder       .52 $  netherlandguilder       .48 $
 newzealanddollar        .539 $  newzealanddollar        .538 $
 norwaykrone             .139 $  norwaykrone             .128 $
 pakistanrupee           .037 $  pakistanrupee           .0193 $
 perunewsol              .5065 $  perunewsol              .298 $
 philippinespeso         .03738 $  philippinespeso         .0264 $
 polandzloty             .000059 $  polandzloty             .254 $
 portugalescudo          .00617 $  portugalescudo          .00523 $
 saudiarabiariyal        .26702 $  saudiarabiariyal        .2666 $
 singaporedollar         .6157 $  singaporedollar         .583 $
 slovakkoruna            .034 $  slovakkoruna            .0229 $
 southamericarand        .21 $  southafricarand         .163 $
 southkoreawon           .001 $  southkoreawon           .00086 $
 spainpeseta             .007 $  spainpeseta             .0063 $
 swedenkrona             .13 $  swedenkrona             .118 $
 switzerlandfranc        .66 $  switzerlandfranc        .66 $
 taiwandollar            .038285 $  taiwandollar            .0308 $
 thailandbaht            .03962 $  thailandbaht            .02705 $
 turkeylira              .0000929 $  turkeylira              .00000244 $
 unitedarabdirham        .2723 $  unitedarabdirham        .2723 $
 uruguaynewpeso          .246852 $  uruguaynewpeso          .0889 $
 venezuelabolivar        .011 $  venezuelabolivar        .00166 $
   euro                    1.05 $
   
 mark                    germanymark  mark                    germanymark
 bolivar                 venezuelabolivar  bolivar                 venezuelabolivar
Line 304 
Line 323 
 markka                  finlandmarkka  markka                  finlandmarkka
 sucre                   ecuadorsucre  sucre                   ecuadorsucre
 poundsterling           britainpound  poundsterling           britainpound
 cruzeiro                brazilcruzeiro  
   
 / computer  / computer
   
Line 316 
Line 334 
 gigabyte                1024 megabyte  gigabyte                1024 megabyte
 meg                     megabyte  meg                     megabyte
   
   
 / Trivia  / Trivia
   
 %                       1|100  %                       1|100
   abampere                10 ampere
 admiraltyknot           6080 ft/hr  admiraltyknot           6080 ft/hr
 apostilb                cd/pi-m2  apostilb                cd/pi-m2
   asb                     apostilb
 are                     1e+2 m2  are                     1e+2 m2
 arpentcan               27.52 mi  arpentcan               27.52 mi
 arpentlin               191.835 ft  arpentlin               191.835 ft
 astronomicalunit        au  astronomicalunit        AU
 atmosphere              1.01325e+5 nt/m2  atmosphere              1.01325e+5 nt/m2
 atm                     atmosphere  atm                     atmosphere
 atomicmassunit          1.66044e-27 kg fuzz  atomicmassunit          1.6605402e-27 kg fuzz
 amu                     atomicmassunit  amu                     atomicmassunit
 bag                     94 lb  bag                     94 lb
 bakersdozen             13  bakersdozen             13
Line 336 
Line 355 
 barie                   1e-1 nt/m2  barie                   1e-1 nt/m2
 barleycorn              1|3 in  barleycorn              1|3 in
 barn                    1e-28 m2  barn                    1e-28 m2
   \ oil barrel, nothing else
 barrel                  42 gal  barrel                  42 gal
 barye                   1e-1 nt/m2  barye                   1e-1 nt/m2
   baryl                   microbar
 bev                     1e+9 e-volt  bev                     1e+9 e-volt
 biot                    10 amp  biot                    10 amp
 blondel                 cd/pi-m2  blondel                 cd/pi-m2
Line 387 
Line 408 
 equivalentphot          cd/pi-cm2  equivalentphot          cd/pi-cm2
 erg                     cm2-gm/sec2  erg                     cm2-gm/sec2
 ev                      e-volt  ev                      e-volt
 faraday                 9.652e+4 coul  faraday                 9.6485309e+4 coul
 fathom                  6 ft  fathom                  6 ft
 fermi                   1e-15 m  fermi                   1e-15 m
 fifth                   4|5 qt  fifth                   4|5 qt
Line 403 
Line 424 
 galileo                 1e-2 m/sec2  galileo                 1e-2 m/sec2
 gamma                   1e-9 weber/m2  gamma                   1e-9 weber/m2
 gauss                   1e-4 weber/m2  gauss                   1e-4 weber/m2
   G                       gauss
 geodeticfoot            british-ft  geodeticfoot            british-ft
 geographicalmile        1852 m  geographicalmile        1852 m
 gilbert                 7.95775e-1 amp  gilbert                 2.5 amp/pi
 gill                    1|4 pt  gill                    1|4 pt
 gross                   144  gross                   144
 gunterschain            22 yd  gunterschain            22 yd
 hand                    4 in  hand                    4 in
   hartree                 2 rydberg
 hectare                 1e+4 m2  hectare                 1e+4 m2
 hefnercandle            .92 cd  hefnercandle            .92 cd
 hertz                   /sec  hertz                   /sec
Line 417 
Line 440 
 hogshead                2 barrel  hogshead                2 barrel
 hd                      hogshead  hd                      hogshead
 homestead               1|4 mi2  homestead               1|4 mi2
 horsepower              550 ft-lb-g/sec  / horsepower is not uniquely defined
   horsepower              735.50 watt
 hp                      horsepower  hp                      horsepower
 hyl                     gm force sec2/m  hyl                     gm force sec2/m
 hz                      /sec  hz                      /sec
Line 426 
Line 450 
 karat                   1|24  karat                   1|24
 kcal                    kilocal  kcal                    kilocal
 kcalorie                kilocal  kcalorie                kilocal
 kev                     1e+3 e-volt  
 key                     kg  key                     kg
 khz                     1e+3 /sec  
 kilderkin               18 gal  kilderkin               18 gal
 knot                    nmile/hr  knot                    nmile/hr
   kn                      knot
 lambert                 cd/pi-cm2  lambert                 cd/pi-cm2
   Lb                      lambert
 langley                 cal/cm2  langley                 cal/cm2
 last                    80 bu  last                    80 bu
 league                  3 mi  league                  3 mi
 lightyear               c-yr  lightyear               c-yr
   ly                      lightyear
 line                    1|12 in  line                    1|12 in
 link                    66|100 ft  link                    66|100 ft
 longhundredweight       112 lb  longhundredweight       112 lb
 longquarter             28 lb  longquarter             28 lb
 lusec                   1e-6 mm-hg m3/s  lusec                   1e-6 mm-hg m3/s
   m_earth                 5.98e24 kg
   m_moon                  7.34e22 kg
   m_sun                   1.989e30 kg
 mach                    331.46 m/sec  mach                    331.46 m/sec
 magnum                  2 qt  magnum                  2 qt
 marineleague            3 nmile  marineleague            3 nmile
 maxwell                 1e-8 weber  maxwell                 1e-8 weber
   Mx                      maxwell
 metriccarat             200 mg  metriccarat             200 mg
 mgd                     megagal/day  mgd                     megagal/day
 mh                      millihenry  mh                      millihenry
 mhz                     1e+6 /sec  
 mil                     1e-3 in  mil                     1e-3 in
 millenium               1000 year  millenium               1000 year
 minersinch              1.5 ft3/min  minersinch              1.5 ft3/min
Line 462 
Line 490 
 noggin                  1|8 qt  noggin                  1|8 qt
 nox                     1e-3 lux  nox                     1e-3 lux
 ns                      nanosec  ns                      nanosec
 oersted                 2.5e+2 pi-amp/m  oersted                 2.5e+2 amp/m/pi
 oe                      oersted  Oe                      oersted
 pace                    36 in  pace                    36 in
 palm                    3 in  palm                    3 in
 parasang                3.5 mi  parasang                3.5 mi
 parsec                  au-radian/arcsec  parsec                  AU-radian/arcsec
 pascal                  nt/m2  pascal                  nt/m2
   Pa                      pascal
 pc                      parsec  pc                      parsec
 pennyweight             1|20 oz  pennyweight             1|20 oz
 pwt                     pennyweight  pwt                     pennyweight
 percent                 %  percent                 %
 perch                   rd  perch                   rd
 pf                      picofarad  
 phot                    lumen/cm2  phot                    lumen/cm2
 pica                    1|6 in  pica                    1|6 in
 pieze                   1e+3 nt/m2  pieze                   1e+3 nt/m2
 pipe                    4 barrel  pipe                    4 barrel
 point                   1|72 in  point                   1|72 in
 poise                   gm/cm-sec  poise                   gm/cm-sec
   P                       poise
 pole                    rd  pole                    rd
   pond                    9.80665e-3 nt
 poundal                 ft-lb/sec2  poundal                 ft-lb/sec2
 pdl                     poundal  pdl                     poundal
 proof                   1|200  proof                   1|200
Line 495 
Line 525 
 registerton             100 ft3  registerton             100 ft3
 rehoboam                156 floz  rehoboam                156 floz
 rhe                     10 m2/nt-sec  rhe                     10 m2/nt-sec
   rem                     0.01 J/kg
 rontgen                 2.58e-4 curie/kg  rontgen                 2.58e-4 curie/kg
   roentgen                rontgen
   R                       roentgen
 rood                    1.21e+3 yd  rood                    1.21e+3 yd
 rope                    20 ft  rope                    20 ft
 rutherford              1e+6 /sec  rutherford              1e+6 /sec
 rydberg                 1.36054e+1 ev  rydbergconst            0.5 electronmass-c-alpha2/planck
   rydberg                 rydbergconst-planck-c
 sabin                   1 ft2  sabin                   1 ft2
 sack                    3 bu  sack                    3 bu
 seam                    8 bu  seam                    8 bu
Line 519 
Line 553 
 stere                   m3  stere                   m3
 sthene                  1e+3 nt  sthene                  1e+3 nt
 stilb                   cd/cm2  stilb                   cd/cm2
   sb                      stilb
 stoke                   1e-4 m2/sec  stoke                   1e-4 m2/sec
 stone                   14 lb  stone                   14 lb
 strike                  2 bu  strike                  2 bu
Line 529 
Line 564 
 tablespoon              4 fldr  tablespoon              4 fldr
 teaspoon                4|3 fldr  teaspoon                4|3 fldr
 tesla                   weber/m2  tesla                   weber/m2
   T                       tesla
 therm                   1e+5 btu  therm                   1e+5 btu
 thermie                 1e+6 cal  thermie                 1e+6 cal
 timberfoot              ft3  timberfoot              ft3
Line 540 
Line 576 
 water                   gram g / cc  water                   gram g / cc
 wey                     40 bu  wey                     40 bu
 weymass                 252 lb  weymass                 252 lb
 Xunit                   1.00202e-13 m  Xunit                   1.00206e-13 m
 k                       1.38047e-16 erg/degC  k                       1.38047e-16 erg/degC
   
   
Line 559 
Line 595 
 englishell              45 inch  englishell              45 inch
 scottishell             37.2 inch  scottishell             37.2 inch
 flemishell              27 inch  flemishell              27 inch
 planck                  6.626e-34 joule-sec  
 hbar                    1.055e-34 joule-sec  
 electronmass            9.1095e-31 kg  
 protonmass              1.6726e-27 kg  
 neutronmass             1.6606e-27 kg  
 V                       volt  V                       volt
 eV                      e V  eV                      e V
 bohrradius              hbar2-C2/8.988e9 N m2-e2-electronmass  bohrradius              hbar2-C2/8.988e9 N m2-e2-electronmass
Line 574 
Line 605 
 statvolt                2.99792458e2 volt  statvolt                2.99792458e2 volt
 statcoulomb             statcoul  statcoulomb             statcoul
 statampere              statamp  statampere              statamp
 debye                   3.336e-30 coul-m  debye                   3.33564e-30 coul-m
 pulsatance              2 pi/sec  pulsatance              2 pi/sec
 rpm                     rev/minute  rpm                     rev/minute
 rps                     rev/sec  rps                     rev/sec
Line 608 
Line 639 
 worstedyarncount        1680 ft/pound  worstedyarncount        1680 ft/pound
 metricyarncount         meter/gram  metricyarncount         meter/gram
 jewlerspoint            2 milligram  jewlerspoint            2 milligram
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4