Compute Values with Units - Maple Programming Help

Home : Support : Online Help : Tasks : Units, Constants, and Errors : Task/ComputeValuesWithUnits

Compute Values with Units

 Description Attach units to expressions and perform arithmetic in a given unit system.

Load the Standard Units package.

 > $\mathrm{with}\left(\mathrm{Units}\left[\mathrm{Standard}\right]\right):$

Enter expressions with units.

 > ${12}⟦\frac{{\mathrm{kg}}}{{{s}}^{{2}}}⟧$
 ${12}{}⟦\frac{{\mathrm{kg}}}{{{s}}^{{2}}}⟧$ (1)
 > ${10}⟦{m}⟧$
 ${10}{}⟦{m}⟧$ (2)

Perform arithmetic computations using those expressions. Maple automatically combines the units.

 > ${-}$
 ${-}{120}{}⟦{N}⟧$ (3)
 Commands Used Unit, Units[Standard]