## How Do I Use Units in Mathematica?

In order to make use of units in Mathematica, it is useful to load the Miscellaneous`Units` package.

Needs["Miscellaneous`Units`"]

When this package is loaded, 270 units of measure and five functions used for conversion are defined. The conversion functions are Convert, ConvertTemperature, SI, CGS, and MKS. Units are treated as any other symbol in Mathematica, so expressing a number with a unit is like multiplying a number by a symbol.

Most units defined in this package are singular, not plural, so always use the singular form to be safe. For example, this package uses 3 Acre, not 3 Acres. There are some exceptions to this rule. For example, you can use Feet or Foot. A complete list of symbols can be found below.

Numbers with units can be multiplied.

12 Foot * 16 Foot

192 Foot2

More complicated units can also be used.

85 Meter/Second * 10 Second

850 Meter

Conversions between units can be carried out.

Convert[78 Pole, Foot]

1287. Foot

Convert[9.8 Meter/Second, Foot/Second]

Converting between temperature units is handled differently. For this reason, a separate function is defined to handle temperature conversions.

ConvertTemperature[212, Fahrenheit, Celsius]

100

Here is a list of all of the symbols defined when the Miscellaneous`Units` package is loaded.

Flatten[Names/@{"Miscellaneous`Units`*",
"Miscellaneous`SIUnits`*"}]