Units - Maple Programming Help

# Online Help

###### All Products    Maple    MapleSim

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

Units

 AddDimension
 add or rename a complex dimension

 Calling Sequence AddDimension(dim=expr)

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.
 • To rename a dimension for all future Maple sessions, add the AddDimension command to your Maple initialization file. For more information, see Create Maple Initialization File.
 • A base dimension cannot be renamed.

Examples

 > $\mathrm{with}\left(\mathrm{Units}\right):$
 Automatically loading the Units[Simple] subpackage
 > $\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)

 See Also