Examples | FAQ | Home | Sales $$$ | What's New | Windows demo |
The following examples give an overview of what UnitMath can do. For more detailed information see Examples and Frequently Asked Questions ( FAQ ) .
yard * 2 foot * 10 inches as cubic feet; = 5 cubic feet
yard * 2 foot * 10 inches as cubic meters; ~ 0.142 cubic meters
yard * 2 foot * 10 inches as gallons & qt & pt & Tbs & tsp; ~ ( 37 gallons + qt + pt + 7 Tbs + 0.195 tsp )
yard * 2 foot * 10 inches * g/cc as lb & oz; ~ ( 312 lb + 2.237 oz )
yard * 2 foot * 10 inches as liter; ~ 141.584 liter
yard * 2 foot * 10 inches * g/cc as kg & g; ~ ( 141 kg + 584.233 g )
myMass: (155 to 160) lb; "define the variable myMass, note lbf is force";
1/2 * myMass * speed^2 as Cal; ~ ( 5.077 to 6.237 ) Cal
myMass * ag * 30. ft as Cal; ~ ( 1.481 to 1.581 ) Cal
(myMass * ag / sq ft) * 27 cubic ft as Cal; ~ 1.4 Cal
force_Gravity: gravitational_constant mass1 mass2/radius^2;
mass1: 180lb;
mass2: (7.354 ± 0.066)e22 kg;
radius: (1738.3±1.1) km;
force_Gravity as lbf; ~ ( 29.497 to 30.119 ) lbf
" Note pm is an alias for ±, so the above equation can be written: "
(3 pm 2) ^ (3 pm 2); ~ 1 to 27 to 3,125
2. * 1.; ~ 0.75 to 2 to 3.75
2.0 * 1.0; ~ 2.
2.00 * 1.00 ; ~ 2.0
(2 to 5) * ( 1 to 10); ~ 2 to 19.25 to 50
sin( (2 ± 5 ) deg); ~ -0.052 to 0.035 to 0.122
sin( (90 ± 5 ) deg) ; ~ 1.00
tan( 85 deg to 89.8 deg); ~ 11.430 to 22.022 to 381.971
" Note: pi is the transcendental number, approximated by 3.14159 "
e^( i pi); = -1
abs( 3 + 4 i ); = 5