list options of a unit in the Unit Converter - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Unit Converter : Units/Converter/GetUnit

Units[Converter][GetUnit] - list options of a unit in the Unit Converter

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

withUnits[Converter]:

GetUnit'm''s'

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

(1)

GetUnit'm''s','display'

display=meters per second (m/s)

(2)

GetUnit'm''s','default'

default=To

(3)

GetUnit'Btu''lb''degF','default','display'

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

(4)

See Also

Units, Units/Converter, Units[Converter][AddUnit], Units[Converter][GetUnits], Units[Converter][HasUnit], Units[Converter][RemoveUnit], Units[GetUnit]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam