Wolfram Language & System 10.0 (2014)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)
WOLFRAM LANGUAGE FEATURED EXAMPLE

Do Calculations with Units

Units are automatically converted during arithmetic operations.

    
Use Quantity to represent units:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Arithmetic operations also handle unit cancellation automatically:
In[3]:=
Click for copyable input
Out[3]=
Estimate the number of miles that can be traveled on a low tank of gas. IndependentUnit is used to represent an arbitrary unit with no relationship to other units within Quantity:
In[4]:=
Click for copyable input
Out[4]=