One can specify a volume as $15.0\u27e6\mathrm{gal}\left(\mathrm{petroleum}\right)\u27e7$ to indicate $15.0$ gallons of gasoline or diesel as opposed to $15.0$ gallons in the abstract, or $x\u27e6J\left(\mathrm{mech}\right)\u27e7$ to indicate $x$ joules of mechanical energy rather than general energy. The effect of this is that the annotated units do not recombine with un-annotated units. This is nice for discussing fuel consumption, for example: without this feature, the unit mile_per_gallon would simplify to approximately $\frac{425143.}{{m}^{2}}$, since its dimension is $\frac{\mathrm{length}}{{\mathrm{length}}^{3}}=\frac{1}{{\mathrm{length}}^{2}}$; however, $\frac{\mathrm{mile}}{\mathrm{gallon}\left(\mathrm{petroleum}\right)}$ does not simplify (its dimension is $\frac{\mathrm{length}}{{\mathrm{length}\left(\mathrm{petroleum}\right)}^{3}}$).

One obtains an angle in radians by dividing the length of an arc by the length of a radius. At first sight, this would seem to require that an angle always simplifies to unit 1, which would be undesirable. The solution is that in Maple, the denominator gets a unit of the dimension $\mathrm{length}\left(\mathrm{radius}\right)$; for example, $m\left(\mathrm{radius}\right)$. So a radian is defined as a $\frac{m}{m\left(\mathrm{radius}\right)}$.

As an example of contexts, Maple understands a mile[standard] as different from a mile[US_survey]: one standard mile is $\frac{499999}{500000}$ US survey miles. Or for a different example: minute can refer to a unit of time, but also to $\frac{1}{60}$ of a degree - the unit of angle. In Maple, these are known as the minute[SI] (or just minute, since SI is the default context for minute, as can be seen on the help page __Units,time__) and the minute[angle], respectively.

If both a context and an annotation are needed on a unit, then the context should be specified first. For example, a circle segment with a radius of $2\u27e6{\mathrm{mile}}_{\mathrm{US\_survey}}\u27e7$ and an arc length of $3\u27e6{\mathrm{mile}}_{\mathrm{nautical}}\u27e7$ describes an angle of $\frac{3}{2}\u27e6\frac{{\mathrm{mile}}_{\mathrm{nautical}}}{{\mathrm{mile}}_{\mathrm{US\_survey}}\left(\mathrm{radius}\right)}\u27e7$.

## Was this information helpful?

## Tell us what we can do better:

What kind of issue would you like to report?

(Optional)

(Optional)