Get Unit - Maple Help

Online Help

All Products    Maple    MapleSim


Units[Converter]

  

GetUnit

  

list options of a unit in the Unit Converter

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GetUnit(unit, opts)

Parameters

unit

-

symbol; unit name

opts

-

(optional) equation(s) of the form option=value where option is one of 'display' or 'default'; specify options for the unit

Description

• 

The GetUnit(unit) function returns the options to the AddUnit function that recreate the unit.

• 

The GetUnit(unit, opts) function returns an expression sequence of equations indicating the values of each option.

• 

This procedure accepts symbols and variations in spelling. For example, ms, meters/second, and metre/second represent the same unit in the Unit Converter.

Examples

withUnitsConverter:

GetUnitms

ms,display=meters per second (m/s),default=To

(1)

GetUnitms,display

display=meters per second (m/s)

(2)

GetUnitms,default

default=To

(3)

GetUnitBtulbdegF,default,display

default=,display=British thermal units per pound degree Fahrenheit (Btu/(lb*Fahrenheit))

(4)

See Also

Units

Units/Converter

Units[Converter][AddUnit]

Units[Converter][GetUnits]

Units[Converter][HasUnit]

Units[Converter][RemoveUnit]

Units[GetUnit]