Equalities and Inequalities - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Science and Engineering : Units : Environments : Natural : Equalities and Inequalities

Equalities and Inequalities in the Natural Units Environment

Description

• 

In the Natural Units environment, the equality and inequality operators (=, <, <=, >, >=, and <>) are modified so that they perform the necessary operations on expressions with units.

• 

The properties of the five arithmetic operations are:

Aa=Bb>A=rB

Aa<Bb>A<rB

Aa<=Bb>A<=rB

Aa>Bb>A>rB

Aa>=Bb>A>=rB

Aa<>Bb>A<>rB

  

where a and b are units; A and B are coefficients; and r is the conversion factor from the unit b to the unit a.

with(Units[Natural]):

3*ft=yd;

3=3

(1)

evalb((1));

true

(2)

1.60*m < mi;

1.60<201168125

(3)

evalb((3));

true

(4)

30.48*cm = ft;

30.48=76225

(5)

evalb((5));

true

(6)

3 * ft + 3*`in` = m;

49535000=1

(7)

evalb((7));

false

(8)

See Also

equalities and inequalities

Units

Units/Natural