1 if get ('ezunits, 'version) = false then load (ezunits) else 'already_loaded;
13 "... \"Customary\" units ..."$
19 fundamental_units (bar);
21 "... Unit conversions ..."$
43 "... Arithmetic operations on dimensional quantities ..."$
47 (100 ` m + 100 ` ft) `` ft;
51 (100 ` m + 100 ` ft) `` m;
55 ((10 ` acre) * (10 ` ft)) `` m^3;
59 quux : (144 ` Btu/hour) / (48 ` ft^2);
63 fundamental_units (quux);
65 quux `` fundamental_units (quux);
81 dimensions (sqrt (bar));
83 "... Units ad hoc ..."$
85 baz : 3 ` sheep + 8 ` goat + 1 ` horse;
87 subst ([sheep = 3*goat, horse = 10*goat], baz);
89 baz2 : 1000`gallon/fortnight;
91 subst (fortnight = 14*day, baz2);
95 "... Declared unit conversions ..."$
97 declare_unit_conversion (MMBtu = 10^6*Btu, kW = 1000*W, kWh = kW*hour, MWh = 1000*kWh);
103 "... Stefan-Boltzmann constant in customary units ..."$
105 56697/10000/10^8 ` W/m^2/K^4;
107 % `` Btu/hour/ft^2/R^4;
111 "... Velocity of sound in helium at 27 C, He(Cp/Cv) = 5/3, 4 g/mol ..."$
113 if get ('physical_constants, 'version) = false then load (physical_constants) else 'already_loaded;
115 v : sqrt (5/3 * %R/(4 ` g/mol) * (27 ` degC `` K));
117 get (%R, 'description);
125 fundamental_units (v);