Arithmetic Operators in the Standard Units Environment - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Environments : Standard : Units/Standard/arithop

Arithmetic Operators in the Standard Units Environment

Description

• 

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

• 

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

aUnitx+bUnitx>a+bUnitx

aUnitx+bUnity>aza+bzbUnitz

aUnitx>aUnitx

aUnitxbUnitx>abz0Unitz

1aUnitx>1aUnit1x

aUnitxr>arUnitxr

ab>ab

  

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

  

Note: In Maple 2015 and later versions, units are not surrounded by double brackets.

with(Units[Standard]):

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'));

132Ω

(4)

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

9m2

(5)

4^x;

4x

(6)

See Also

arithmetic operators

Units

Units/Standard

 


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