Units - Maple Programming Help

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

Units

 add or rename a complex dimension

Parameters

 dim - symbol; dimension name expr - symbol; complex dimension

Description

 • The AddDimension(dim=expr) function renames the complex dimension given by expr as dim for the current session.
 • A base dimension cannot be renamed.

Examples

 > $\mathrm{with}\left(\mathrm{Units}\right):$
 > $\mathrm{convert}\left(\frac{'m'}{{'s'}^{2}},'\mathrm{dimensions}'\right)$
 ${\mathrm{acceleration}}$ (1)
 > $\mathrm{convert}\left(\frac{'m'}{{'s'}^{3}},'\mathrm{dimensions}'\right)$
 ${\mathrm{jerk}}$ (2)
 > $\mathrm{AddDimension}\left('\mathrm{surge}'=\frac{'\mathrm{length}'}{{'\mathrm{time}'}^{3}}\right)$
 > $\mathrm{convert}\left(\frac{'m'}{{'s'}^{3}},'\mathrm{dimensions}'\right)$
 ${\mathrm{surge}}$ (3)
 > $\mathrm{convert}\left(\frac{'V'}{'s'},'\mathrm{dimensions}'\right)$
 $\frac{{{\mathrm{length}}}^{{2}}{}{\mathrm{mass}}}{{{\mathrm{time}}}^{{4}}{}{\mathrm{electric_current}}}$ (4)
 > $\mathrm{AddDimension}\left('\mathrm{potential_flow}'=\frac{'\mathrm{electric_potential}'}{'\mathrm{time}'}\right)$
 > $\mathrm{convert}\left(\frac{'V'}{'s'},'\mathrm{dimensions}'\right)$
 ${\mathrm{potential_flow}}$ (5)

This function can be used to rename existing dimensions.

 > $\mathrm{convert}\left('V','\mathrm{dimensions}'\right)$
 ${\mathrm{electric_potential}}$ (6)
 > $\mathrm{AddDimension}\left('\mathrm{electromotive_force}'='\mathrm{electric_potential}'\right)$
 > $\mathrm{convert}\left('V','\mathrm{dimensions}'\right)$
 ${\mathrm{electromotive_force}}$ (7)