split an expression into a unitless part and a unit
Split(expr, output = o)
algebraic expression, typically with units
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 output=unit, only the unit is returned. If you specify output=coefficient, only the unitless part is returned. If you specify output=l, where l is a list of the names unit and coefficient, then Split returns the corresponding values as an expression sequence in the order specified. The default value of the output option is coefficient,unit.
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
expr ≔ 5⁢m
distance ≔ 17⁢m
speed ≔ 5⁢kmh
duration ≔ distancespeed
The Units[Split] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document