list all unit names - Maple Help

Online Help

All Products    Maple    MapleSim


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

Units[GetUnits] - list all unit names

Calling Sequence

GetUnits(opts)

Parameters

opts

-

(optional) equation(s) of the form option=value where option is one of 'context', 'dimension', 'energy', or 'name'; specify options of the units

Description

• 

The GetUnits() function returns an expression sequence of all unit name and context pairs.

• 

You can restrict the list by describing the options of the units by using the optional arguments.  The opts argument can contain one or more of the following equations.

  

 

  

'context'=symbol

  

This option specifies the context of returned units.

  

 

  

'dimension'=algebraic

  

This option specifies the required dimension for the returned units. It must be an expression that can be converted to a product of powers of base dimensions.

  

 

  

'energy'=truefalse

  

This option specifies whether energy conversions are used to determine the equality of a given dimension.  See Energy Conversions.

  

This option can be used only with the 'dimension' option.

  

 

  

'name'=symbol

  

This option specifies that the units listed must have names or symbols that can be represented by the given name or symbol.

Examples

withUnits:

nopsGetUnits

589

(1)

GetUnits'context'='avoirdupois'

centalavoirdupois,cloveavoirdupois,spellings_set:-drachmavoirdupois,grainavoirdupois,kipavoirdupois,ounceavoirdupois,poundavoirdupois,quarteravoirdupois,quintalavoirdupois,stoneavoirdupois,weyavoirdupois

(2)

GetUnits'dimension'='power'

abwattEMU,spellings_set:-donkeypowerstandard,horsepowerUK,horsepowerboiler,horsepowerelectric,horsepowermetric,horsepowerwater,planck_powerplanck,ponceletstandard,statwattESU,tonrefrigeration,wattSI

(3)

GetUnits'name'='cal'

calorie15degC,calorie20degC,calorieIT,caloriemean,calorienutrition,caloriethermochemical

(4)

GetUnits'dimension'='energy','context'='SI'

electronvoltSI,jouleSI

(5)

See Also

Units, Units/Commands, Units/Index, Units[AddUnit], Units[GetUnit], 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