Logic (boolean) operators – Texas Instruments TI-73 EXPLORER User Manual

Page 39

Advertising
background image

Chapter 2: Math Operations

33

7302ENG.DOC CH2 Math Operations, English Julie Hewlett Revised: 07/29/98 11:58 AM Printed: 05/19/99 8:58

AM Page 33 of 32

Operator:

Returns true (1) if:

=

(equal)

Two conditions are equal.

ƒ

(not equal to)

Two conditions are not equal.

>

(greater than)

conditionA is greater than conditionB.

‚

(greater than or

equal to)

conditionA is greater than or equal to

conditionB.

<

(less than)

conditionA is less than conditionB.



(less than or

equal to)

conditionA is less than or equal to

conditionB.

Logic (Boolean) Operators

Logic (Boolean) operators compare conditionA and

conditionB and return

1

if the conditional statement is true.

They return

0

if the conditional statement is false. conditionA

and conditionB can be real numbers, expressions, or lists.
If both conditions are lists, they must have the same number

of elements. If one condition is a list and the other a non-list,

the non-list is compared with each element of the list, and a

list is returned.

conditionA

and

conditionB

conditionA

or

conditionB

Operator:

Returns true (1) if:

and

Both conditions are nonzero.

or

At least one condition is nonzero.

Test

1

/

2

=

16

/

32

.

- l
:

1

=

2

"

- t

=

b

Done

b

1 6

=

3 2

b

³

1=true

Advertising