|
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.
|
|
This option specifies the context of returned units.
|
|
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.
|
|
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.
|
|
This option specifies that the units listed must have names or symbols that can be represented by the given name or symbol.
|
|
|
Examples
|
|
Automatically loading the Units[Simple] subpackage
| |
>
|
|
| (2) |
>
|
|
| (3) |
| (4) |
>
|
|
| (5) |
|
|
|