« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Units
Automatic Unit Cancellation
Arithmetic operations automatically handle unit cancellation.
In[1]:=
X
N[Quantity[175, "Pounds"]/Quantity[100, "Kilograms"]]
Out[1]=
Estimate the number of miles that can be traveled on a low tank of gas.
In[2]:=
X
Quantity[24, "Miles"/"Gallons"]* Quantity[16.2, "Gallons"/IndependentUnit["tank"]]* Quantity[1/8, IndependentUnit["tank"]]
Out[2]=