Units - Maple Programming Help

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

 > $\mathrm{with}\left(\mathrm{Units}\right):$
 > $\mathrm{nops}\left(\left[\mathrm{GetUnits}\left(\right)\right]\right)$
 ${589}$ (1)
 > $\mathrm{GetUnits}\left('\mathrm{context}'='\mathrm{avoirdupois}'\right)$
 ${{\mathrm{cental}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{clove}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{drachm}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{grain}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{kip}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{ounce}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{pound}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{quarter}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{quintal}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{stone}}}_{{\mathrm{avoirdupois}}}{,}{{\mathrm{wey}}}_{{\mathrm{avoirdupois}}}$ (2)
 > $\mathrm{GetUnits}\left('\mathrm{dimension}'='\mathrm{power}'\right)$
 ${{\mathrm{abwatt}}}_{{\mathrm{EMU}}}{,}{{\mathrm{donkeypower}}}_{{\mathrm{standard}}}{,}{{\mathrm{horsepower}}}_{{\mathrm{UK}}}{,}{{\mathrm{horsepower}}}_{{\mathrm{boiler}}}{,}{{\mathrm{horsepower}}}_{{\mathrm{electric}}}{,}{{\mathrm{horsepower}}}_{{\mathrm{metric}}}{,}{{\mathrm{horsepower}}}_{{\mathrm{water}}}{,}{{\mathrm{planck_power}}}_{{\mathrm{planck}}}{,}{{\mathrm{poncelet}}}_{{\mathrm{standard}}}{,}{{\mathrm{statwatt}}}_{{\mathrm{ESU}}}{,}{{\mathrm{ton}}}_{{\mathrm{refrigeration}}}{,}{{\mathrm{watt}}}_{{\mathrm{SI}}}$ (3)
 > $\mathrm{GetUnits}\left('\mathrm{name}'='\mathrm{cal}'\right)$
 ${{\mathrm{calorie}}}_{{\mathrm{15degC}}}{,}{{\mathrm{calorie}}}_{{\mathrm{20degC}}}{,}{{\mathrm{calorie}}}_{{\mathrm{IT}}}{,}{{\mathrm{calorie}}}_{{\mathrm{mean}}}{,}{{\mathrm{calorie}}}_{{\mathrm{nutrition}}}{,}{{\mathrm{calorie}}}_{{\mathrm{thermochemical}}}$ (4)
 > $\mathrm{GetUnits}\left('\mathrm{dimension}'='\mathrm{energy}','\mathrm{context}'='\mathrm{SI}'\right)$
 ${{\mathrm{electronvolt}}}_{{\mathrm{SI}}}{,}{{\mathrm{joule}}}_{{\mathrm{SI}}}$ (5)
 >