combine/units
combine units
Calling Sequence
Parameters
Description
Examples
combine(expr, 'units', opts)
expr
-
algebraic expression
opts
equation(s) of the form option=value where option is one of 'mode' or 'system'; specify options for combining units
The combine/units function combines, if possible, expressions involving units into a unit-free expression multiplied by a Unit object.
The conversion convert⁡expr,metric can be implemented as combine(expr, 'units', 'mode'='natural').
The opts argument can contain one or more of the following equations that set options for how units are interpreted and combined.
'mode'=standard or natural or simple
The mode standard indicates that Maple uses routines and operations from the Units[Standard] environment, whereas the mode natural indicates routines and operations from the Units[Natural] environment and simple indicates routines and operations from the Units[Simple] environment.
The default mode is set by the UseMode command, which is called if you load Units[Standard], Units[Natural], or Units[Simple]. If the command hasn't been called, the default mode is standard.
'system'=symbol
By default, any result is converted to the default system of units, which by default is SI. By specifying a different system of units, the result is converted, if possible, to that system.
Note: Prior to Maple 2015, units were displayed surrounded by double brackets.
combine⁡4⁢'ft'+3⁢'inches','units','mode'='natural'
64775000⁢m
combine⁡'yards','units','mode'='natural'
11431250⁢m
combine⁡5⁢'gallonsUK','units','mode'='natural'
45460920000000⁢m3
combine⁡5⁢'gallonsUS_liquid','units','mode'='natural'
47317647325000000000⁢m3
with⁡UnitsNatural:
d1 ≔ 3⁢ft
d1≔3⁢ft
t1 ≔ 13⁢s
t1≔13⁢s
speed ≔ subs⁡dx=d1,dt=t1,dxdt
speed≔313⁢s⁢ft
combine⁡speed,'units'
114316250⁢ms
combine⁡speed,'units','system'='FPS'
313⁢fts
See Also
convert/units
Units
Units/Natural
Units/Simple
Units/Standard
Units/Systems
Units[Unit]
Units[UseMode]
Download Help Document