1 ttyoff: nolabels: true $
2 newton: newtons: kilogram*meter/second**2 $
3 joule: joules: newton*meter $
4 watt: watts: joule/second $
5 acre: acres: 4047.*meter**2 $
6 ampere: amperes: amp: amps: coulomb/second $
7 ohm: ohms: volt/ampere $
8 angstrom: angstroms: 1.0e-10*meter $
9 are: ares: 100.*meter**2 $
10 astronomicalunit: astronomicalunits: 1.495e11*meter $
11 atmosphere: atmospheres: 101326.*newton/meter**2 $
12 bar: bars: 1.0e5*newton/meter**2 $
13 barreldry: barrelsdry: .099372*meter**3 $
14 barrel: barrels: barrelsliquid: barrelliquid: .11923*meter**3 $
15 barreloil: barrelsoil: .15897*meter**3 $
16 baryl: baryls: 1.0e-6*bar $
17 bolt: bolts: 36.576*meter $
18 btu: btus:britishthermalunit: britishthermalunits: 1054.8*joule$
19 bushel: bushels: 0.03524*meter**3 $
20 candle: candles: lambert*3.142e-4*meter**2 $
21 centigram: centigrams: 1.0e-5*kilogram $
22 centiliter: centileters: .01*liter $
23 centimeter: centimeters: cm: .01*meter $
24 centimeterofmercury: centimetersofmercury: .01316*atmosphere $
25 chain: chains: 20.12*meter $
26 circularmil: circularmils: 5.067e-10*meter**2 $
27 cord: cords: 7.249*meter**3 $
29 cup: cups: 2.355e-4*meter**3 $
30 cycle: cycles: 6.2831853*radian $
31 dalton: daltons: 1.65e-27*kilogram $
32 day: days: 86400.*second $
33 decigram: decigrams: 1.e-4*kilogram $
34 deciliter: deciliters: .0001*meter**3 $
35 decimeter: decimeters: .1*meter $
36 degree: degrees: deg: .0174532924*radian $
38 /* Reasoning for not converting between degree fahrenheit, degree celsius
41 * Typically temperatures are absolute values that don't get
42 * summed up. So let everybody use the unit he is happy with.
43 * Of course there are also temperature differences, but these need
44 * a different conversion formula than absolute temperatures, thus making
45 * a mess which could only be resolved by introducing additional units.
47 * At least this is what I guess that the original author intended.
49 degreef: degf: degreefahrenheit $
50 degreec: degc: degreecentigrade: degreecelsius $
51 degreer: degr: degreerankine: degreekelvin/1.8 $
52 dekagram: dekagrams: .01*kilogram $
53 dekaliter: dekaliters: 10.*liter $
54 dekameter: dekameters: 10.*meter $
55 dyne: dynes: 1.e-5*newton $
56 ell: ells: 1.143*meter $
57 empica: emspica: .004233*meter $
58 erg: ergs: 1.e-7*joule $
60 faraday: faradays: 9.649*coulomb $
61 fathom: fathoms: 1.828804*meter $
62 feet: foot: ft: .3048*meter $
63 feetofwater: footofwater: .0295*atmosphere $
64 fluidounce: fluidounces: cup/8. $
65 footcandle: footcandles: .016103*watt/meter**2 $
66 furlong: furlongs: 660.*feet $
67 gallon: gallons: 3.785e-3*meter**3 $
68 gallonimperial: gallonsimperial: 1.20095*gallon $
69 gill: gills: .0001183*meter**3 $
70 grade: grades: .01571*radian $
71 gram: grams: gm: .001*kilogram $
72 gramcalorie: gramcalories: 4.1868*joule $
73 hand: hands: .1016*meter $
74 hectograms: hectogram: 100.*gram $
75 hectoliter: hectoliters: .1*meter**3 $
76 hectometer: hectometers: 100.*meter $
77 hectowatt: hectowatts: 100.*watt $
79 hogshead: hogsheads: 63.*gallon $
80 horsepower: hp: 745.7*watt $
81 hour: hours: 3600*second $
82 inch: inches: in: .0254*meter $
83 inchofmercury: inchesofmercury: .03342*atmosphere $
84 joules: joule: newton*meter $
85 kilograms: kg: kilogram $
86 kilometer: kilometers: km: 1000.*meter $
87 kilowatts: kilowatt: 1000.*watt $
88 knot: knots: 1.8532*kilometer/hour $
89 league: leagues: 4827.*meter $
90 lightyear: lightyear: 9.46091e15*meter $
92 linksurveyor: 7.92*inch $
93 liter: .001*meter**3 $
95 lux: .0929*footcandle $
96 megohm: megohms: 1.e6*ohm $
98 microfarad: microfarads: 1.e-6*farad $
99 microgram: micrograms: 1.e-6*gram $
100 microhm:microhms: 1.e-6*ohm $
101 microliter: microliters: 1.e-6*liter $
102 micron: microns: 1.e-6*meter $
103 microsecond: microseconds: 1.e-6*seconds $
104 milenautical: milesnautical: 1853.*meter $
105 mile: miles: 1609.*meter $
106 millier: milliers: 1000.*kilogram $
107 millimicron: millimicrons: 1.e-9*meter $
108 milligram: milligrams: .001*gram $
109 millihenry: millihenries: .001*henry $
110 milliliter: milliliters: ml: .001*liter $
111 millimeter: millimeters: .001*meter $
112 millisecond: milliseconds: ms: 1.e-6*second $
113 mil: mils: 2.54e-5*meter $
114 minute: minutes: min: 60.*second $
115 minersinch: minersinches: 1.5*foot**3/minute $
116 minims: .061612*centimeter**3 $
117 myriagram: myriagrams: 10.*kilograms $
118 myriameter: myriameters: 10.*kilometer $
119 myriawatt: myriawatts: 10.*kilowatt $
120 neper: nepers: 8.686*decibels $
121 newtons: newton: kilogram*meter/second**2 $
122 ohms: ohm: volts/ampere $
123 parsec: parsecs: 3.084e16*meter $
124 peck: pecks: 8.809582*liter $
125 pint: pints: gallon/8. $
126 poundal: poundals: .13826*newton $
127 poise: gram/centimeter/second $
128 pound: pounds: lb: lbf: 4.44823*newton $
129 poundmass: poundsmass: lbm: .4536*kilogram $
130 ounce: ounces: ounceavoirdupois: poundmass/16. $
131 ouncetroy: ouncestroy: 1.09714*ounce $
132 quartdry: quartsdry: 67.2*inch**3 $
133 quart: quarts: qt: 9.464e-4*meter**3 $
134 radians: rad: radian $
135 revolution: revolutions: cycle $
136 rod: rods: 5.029*meter $
137 slug: slugs: 14.59*kilogram $
138 seconds: sec: second $
139 sphere: spheres: 12.57*steradian $
140 stoke: stokes: 1.0e-4*meter**2/second $
141 statcoulomb: coulomb/2.998e10 $
142 steradians: steradian $
143 tablespoon: tablespoons: .5*fluidounce $
144 teaspoon: tablespoon/3. $
146 watts: watt: joule/second $
147 week: weeks: 7.*day $
148 yard: yards: yd: .9144*meter $
150 assume(coulomb >= 0) $
151 assume(kilogram >= 0) $
153 assume(second >= 0) $
155 assume(radian >= 0) $
156 assume(steradian >= 0) $
157 assume(lambert >= 0) $
158 assume(degreefahrenheit >= 0) $
159 assume(degreecelsius >= 0) $
160 assume(degreekelvin >= 0) $
163 assume(decibels >= 0) $
165 matchdeclare(freeofdegreefahrenheit,freeof(degreefahrenheit),
166 freeofdegreecelsius, freeof(degreecelsius)) $
167 tellsimpafter(freeofdegreefahrenheit*degreefahrenheit,
168 (freeofdegreefahrenheit+460)*degreekelvin/1.8) $
169 tellsimpafter(freeofdegreecelsius*degreecelsius, (freeofdegreecelsius+273.)*degreekelvin) $
170 ttyoff: nolabels: false $