Get Units - Maple Help

Online Help

All Products    Maple    MapleSim


Units

  

GetUnits

  

list all unit names

 

Calling Sequence

Parameters

Description

Examples

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:

Automatically loading the Units[Simple] subpackage

nopsGetUnits

599

(1)

GetUnitscontext=avoirdupois

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

(2)

GetUnitsdimension=power

abwattEMU,donkeypowerstandard,horsepowerUK,horsepowerboiler,horsepowerelectric,horsepowermetric,horsepowerwater,planck_powerplanck,ponceletstandard,statwattESU,tonrefrigeration,voltamperepower,voltampere_reactivepower,wattSI

(3)

GetUnitsname=cal

calorie15degC,calorie20degC,calorieIT,caloriemean,calorienutrition,caloriethermochemical

(4)

GetUnitsdimension=energy,context=SI

electronvoltSI,jouleSI

(5)

See Also

Units

Units/Commands

Units/Index

Units[AddUnit]

Units[GetUnit]

Units[HasUnit]