Units
Split
split an expression into a unitless part and a unit
Calling Sequence
Parameters
Description
Examples
Compatibility
Split(expr)
Split(expr, output = o)
expr
-
algebraic expression, typically with units
o
the names unit or coefficient, or a list of these names
The Split command splits an expression into a unitless part and a unit.
By default, the command returns both the unitless part and the unit as an expression sequence: first the unitless part, then the unit.
You can use the output option to make Split return only one of the two. If you specify , only the unit is returned. If you specify , only the unitless part is returned. If you specify , where is a list of the names and , then Split returns the corresponding values as an expression sequence in the order specified. The default value of the option is .
If expr is itself unitless, the unit is 1. If expr is just a unit (that is, a call to the Unit function), the unitless part is 1.
Automatically loading the Units[Simple] subpackage
The Units[Split] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
See Also
combine,units
convert,unit_free
Download Help Document