Units
GetUnits
list all unit names
Calling Sequence
Parameters
Description
Examples
GetUnits(opts)
opts
-
(optional) equation(s) of the form option=value where option is one of 'context', 'dimension', 'energy', or 'name'; specify options of the units
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.
with⁡Units:
Automatically loading the Units[Simple] subpackage
nops⁡GetUnits⁡
599
GetUnits⁡context=avoirdupois
centalavoirdupois,cloveavoirdupois,drachmavoirdupois,grainavoirdupois,kipavoirdupois,ounceavoirdupois,poundavoirdupois,quarteravoirdupois,quintalavoirdupois,stoneavoirdupois,weyavoirdupois
GetUnits⁡dimension=power
abwattEMU,donkeypowerstandard,horsepowerUK,horsepowerboiler,horsepowerelectric,horsepowermetric,horsepowerwater,planck_powerplanck,ponceletstandard,statwattESU,tonrefrigeration,voltamperepower,voltampere_reactivepower,wattSI
GetUnits⁡name=cal
calorieIT,calorie15degC,calorie20degC,caloriemean,calorienutrition,caloriethermochemical
GetUnits⁡dimension=energy,context=SI
electronvoltSI,jouleSI
See Also
Units/Commands
Units/Index
Units[AddUnit]
Units[GetUnit]
Units[HasUnit]
Download Help Document