Graphics Overview of UnitMath

email 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 ) .

Unit Conversions TOP

20 yards as inches; = 720 inches
ton as ounces; = 32,000 ounces
year as days & hours & min & sec; ~ ( 365 days + 5 hours + 48 min + (45.147 to 45.233 ) sec )

Calculations With Units TOP

8 feet - (2.54 0) cm as feet & inches; = 7 feet + 11 inches

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 )

Variables TOP

60 mph * 8 hours as miles; = 480 miles
speed: ( 55 to 60 ) mph "define the variable speed";
speed * (8 to 9 ) hours as miles; ~ ( 440 to 540 ) miles
1000 km / speed as hours; ~ ( 10.356 to 11.298 ) hours

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.31.1) km;
force_Gravity as lbf; ~ ( 29.497 to 30.119 ) lbf

Calculations With Uncertainty TOP

3 2; ~ 3 2
3 2 + 3 2; ~ 6 4
(3 2) * (3 2); ~ 1 to 9 to 25
(3 2) / (3 2); ~ 0.2 to 1 to 5
(3 2) ^ (3 2); ~ 1 to 27 to 3,125

" 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

Complex Numbers TOP

square i; = -1
sqrt( -1 ); = i
(1 + 2 i) + (3 - 3i); = 4 - i
(1 + 2 i) ( 3 - 3i); = 9 + 3 i
(1.0 + 2.0 i) (3.0 - 3.0i); ~ 9. + 3. i
(1 + 2 i) / ( 3 - 3i); ~ -0.167 + 0.5 i
(1 + 2 i) ^ ( 3 - 3i); ~ 190.739 + 243.993 i

" Note: pi is the transcendental number, approximated by 3.14159 "
e^( i pi); = -1
abs( 3 + 4 i ); = 5

Phasor Notation TOP

20 volts phase ( 90 deg ) * 2 amps phase ( 0*); = 40 phase( 90 deg ) W
40 Watts phase ( 90 deg ) / 10 volts phase( 30*); = 4 phase( 120 deg ) A
20 phase ( 90 deg) + 0; = 20 i
phase( 1 + i ); ~ 1.414 phase( 45 deg )

Vectors TOP

5 * ( `i +`j + `k ) - ( 10 `i - 33`j + 9`k ); = -5 `i + 38 `j - 4 `k
abs( `i + `j + `k)/sqrt(3); = 1
( `i + `j + `k )/ abs( `i + `j + `k ); ~ 0.577 `i + 0.577 `j + 0.577 `k
abs( ( `i + `j + `k )/ abs( `i + `j + `k ) ); = 1

Angles Between Vectors TOP

acos( ( `i + `j + `k) dot ( `i + `j) / ( abs( `i + `j + `k ) abs( `i + `j ) ) ) as deg; ~ 35.264 deg

Moments TOP

( 2 yard `i + 5 m `j + 21 feet `k ) cross ( -667 N `j ) as ft lbf; ~ ( 3,148.899 `i - 899.685 `k ) ft lbf