Arithmetic Operators - 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

Arithmetic Operators in the Simple Units Environment

Description

• 

In the Simple Units environment, the arithmetic operators (+, -, *, /, and ^) are modified so that they perform the necessary operations on expressions with units.

• 

Every command in the Simple Units environment that needs to determine whether an expression is valid or not, does so using the Units:-TestDimensions command.

• 

Given units x and y, the properties of the five arithmetic operators are:

aUnitx+bUnitxa+bUnitx

aUnitx+bUnityaza+bzbUnitz

aUnitxaUnitx

aUnitxbUnityabz0Unitz

1aUnitx1aUnit1x

aUnitxrarUnitxr

abab

  

where r is a rational number; z is an appropriate unit from the currently selected system; and za, zb, and z0 are appropriate multipliers.

  

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

with(Units[Simple]):

3*Unit('m')+7*Unit('ft');

64171250m

(1)

(3*Unit('cm'/'s'^2))*(7*Unit('g'));

21100000N

(2)

-(32*Unit('m'));

32m

(3)

1/(32*Unit('S'));

1321S

(4)

(3*Unit('m'))^2;

9m2

(5)

4^x;

4x

(6)

See Also

arithmetic operators

Units

Units/Simple

 


Download Help Document