MATHEMATICA FEATURED EXAMPLE
Do Calculations with Units
Units are automatically converted during arithmetic operations.
Use Quantity to represent units:
| In[6]:= |
| Out[6]= |
| In[7]:= |
| Out[7]= |
| In[8]:= |
| Out[8]= |
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[9]:= |
| Out[9]= |

