Units - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Manipulating Units : Units/GetUnit

Units

  

GetUnit

  

get unit information

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

GetUnit(unit, opt1, opt2, ...)

Parameters

unit

-

symbol; unit name

opt1, opt2, ...

-

(optional) options names where opt1, opt2, ... are 'abbreviation', or 'abbreviations', 'context', 'conversion', 'default', 'plural', 'prefix', 'spelling', 'spellings', 'symbol', 'symbols'; specify options of the given unit

Description

• 

The GetUnit(unit) function returns the default unit name and an expression sequence of equations for only the options that recreate the unit if given as options to the AddUnit function.

• 

The GetUnit(unit, opt1, opt2, ...) function, where each opti is an option name, returns an expression sequence of equations indicating the values of only the opti specified in the calling sequence. This allows the display of information that is not included in the output to GetUnit(unit). For a description of each option, see Units,AddUnit.

• 

The GetUnit(unit, 'context') function is a convenient way to determine the default context of unit.

Examples

withUnits:

GetUnit'ounceavoirdupois'

ounce,context=avoirdupois,default=false,conversion=453592371600000gramSI,prefix=false,symbol=oz,symbols=oz,spelling=ounce,plural=ounces,spellings=ounce,ounces,abbreviation=none,abbreviations=

(1)

GetUnit'ounceavoirdupois','default','symbols','symbol'

ounce,default=false,symbols=oz,symbol=oz

(2)

GetUnit'ounceUS_liquid','default','symbols','symbol'

ounce,default=false,symbols=oz,symbol=oz

(3)

GetUnit'meter','spellings','spelling','plural'

meter,meter,meters,metre,metres,spelling=meter,plural=meters

(4)

GetUnit'atmospheretechnical'

atmosphere,context=technical,default=false,conversion=98066500gramSImetreSIsecondSI2,prefix=false,symbol=atm,symbols=atm,atmos,spelling=atmosphere,plural=atmospheres,spellings=atmosphere,atmospheres,abbreviation=at,abbreviations=at

(5)

GetUnit'atmospheretechnical','symbol','abbreviation'

atmosphere,symbol=atm,abbreviation=at

(6)

See Also

Units

Units/Commands

Units/Index

Units[AddUnit]

Units[GetUnits]

Units[HasUnit]

 


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