Equations and Inequalities, =, , , =, , = - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Logic : Relations : equation

Equations and Inequalities, =, <>, <, <=, >, >=

 

Description

Thread Safety

Examples

Description

• 

An equation is represented externally using the binary operator =. An expression which is an equation has two operands, the left-hand side and the right-hand side.  The names = and equation are known to the type function.

• 

There are three internal data types for inequalities, corresponding to the operators <>, <, and <=. Inequalities involving the operators > and >= are converted to the latter two cases for purposes of representation. An inequality has two operands, the left-hand side and the right-hand side. The names <>, <, <= are known to the type function.

• 

Comparisons of numeric values are carried out in the corresponding numeric computation environment. For example, the test 3.141 < 3.142 is evaluated by subtraction in the floating-point environment determined by Digits. Hence, if Digits > 3, this returns true.  If Digits <= 3, this test returns false.

• 

These operators are viewed as relational operators in a Boolean context or by the evalb function.  For more information, see boolean.

Thread Safety

• 

The equation and inequality operators are thread safe as of Maple 15.

• 

The Equations and Inequalities, =, <>, <, <=, >, >= command is thread-safe as of Maple 15.

• 

For more information on thread safety, see index/threadsafe.

Examples

ea&equals;b

e:=a&equals;b

(1)

typee&comma;&apos;equation&apos;

true

(2)

efx<gx

e:=fx<gx

(3)

typee&comma;&apos;equation&apos;

false

(4)

typee&comma;`<`

true

(5)

lhse

fx

(6)

rhse

gx

(7)

eqsa1&equals;b1&comma;a2&equals;b2&comma;a3&equals;b3

eqs:=a1&equals;b1&comma;a2&equals;b2&comma;a3&equals;b3

(8)

maplhs&comma;eqs

a1&comma;a2&comma;a3

(9)

a&equals;2

a&equals;2

(10)

a

a

(11)

assign

a

2

(12)

See Also

assign

boolean

evalb

lhs

op

plots[inequal]

rhs

type

type/equation

type/inequation

 


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