Units - Maple Programming Help

Home : Support : Online Help : Science and Engineering : Units : Manipulating Dimensions : Units/GetDimension

Units

 GetDimension
 return dimension as a product of powers of base dimensions

 Calling Sequence GetDimension(dim)

Parameters

 dim - symbol; dimension

Description

 • The function GetDimension(dim) returns the argument for a base dimension, and the product of powers of base dimensions for any other dimension.

Examples

 > $\mathrm{with}\left(\mathrm{Units}\right):$
 > $\mathrm{GetDimension}\left('\mathrm{length}'\right)$
 ${\mathrm{length}}$ (1)
 > $\mathrm{GetDimension}\left('\mathrm{speed}'\right)$
 $\frac{{\mathrm{length}}}{{\mathrm{time}}}$ (2)
 > $\mathrm{GetDimension}\left('\mathrm{acceleration}'\right)$
 $\frac{{\mathrm{length}}}{{{\mathrm{time}}}^{{2}}}$ (3)
 > $\mathrm{GetDimension}\left('\mathrm{surge}'\right)$
 > $\mathrm{AddDimension}\left('\mathrm{surge}'=\frac{'\mathrm{length}'}{{'\mathrm{time}'}^{3}}\right)$
 > $\mathrm{GetDimension}\left('\mathrm{surge}'\right)$
 $\frac{{\mathrm{length}}}{{{\mathrm{time}}}^{{3}}}$ (4)