Using boolean operations – Texas Instruments TI-84 User Manual

Page 94

Advertising
background image

Chapter 2: Math, Angle, and Test Operations

91

valueA and valueB
valueA
or valueB
valueA
xor valueB

not(

not(

not(

not(

not(

returns

1 if

value

(which can be an expression) is 0.

not(value)

Using Boolean Operations

Using Boolean Operations

Using Boolean Operations

Using Boolean Operations

Boolean logic is often used with relational tests. In the following program, the instructions
store 4 into C.

valueA

valueB

and

or

xor

ƒ

0

ƒ

0

returns

1

1

0

ƒ

0

0

returns

0

1

1

0

ƒ

0

returns

0

1

1

0

0

returns

0

0

0

Advertising