combine/units - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Combining : combine/units

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

  

The mode standard indicates that Maple uses routines and operations from the Units[Standard] environment (the default), whereas the mode natural indicates routines and operations from the Units[Natural] environment.

  

 

  

'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: In Maple 2015 and later versions, units are not surrounded by double brackets.

combine4'ft'+3'inches','units','mode'='natural'

64775000m

(1)

combine'yards','units','mode'='natural'

11431250m

(2)

combine5'gallonsUK','units','mode'='natural'

45460920000000m3

(3)

combine5'gallonsUS_liquid','units','mode'='natural'

47317647325000000000m3

(4)

withUnits[Natural]:

d13ft

d1:=3ft

(5)

t113s

t1:=13s

(6)

speedsubsdx=d1,dt=t1,dxdt

speed:=313fts

(7)

combinespeed,'units'

114316250ms

(8)

combinespeed,'units','system'='FPS'

313fts

(9)

See Also

convert/units

Units

Units/Natural

Units/Standard

Units/Systems

Units[Unit]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam