units - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


combine/units

combine units

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

combine(expr, 'units', opts)

Parameters

expr

-

algebraic expression

opts

-

equation(s) of the form option=value where option is one of 'mode' or 'system'; specify options for combining units

Description

• 

The combine/units function combines, if possible, expressions involving units into a unit-free expression multiplied by a Unit object.

• 

The conversion convertexpr,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.

Examples

Note: Prior to Maple 2015, units were displayed surrounded by double brackets.

combine4ft+3inches,units,mode=natural

64775000m

(1)

combineyards,units,mode=natural

11431250m

(2)

combine5gallonsUK,units,mode=natural

45460920000000m3

(3)

combine5gallonsUS_liquid,units,mode=natural

47317647325000000000m3

(4)

withUnitsNatural:

d13ft

d13ft

(5)

t113s

t113s

(6)

speedsubsdx=d1,dt=t1,dxdt

speed313sft

(7)

combinespeed,units

114316250ms

(8)

combinespeed,units,system=FPS

313fts

(9)

See Also

convert/units

Units

Units/Natural

Units/Simple

Units/Standard

Units/Systems

Units[Unit]

Units[UseMode]