Page 21-45
Logical operators
Logical operators are logical particles that are used to join or modify simple
logical statements. The logical operators available in the calculator can be
easily accessed through the keystroke sequence: „° @)TEST@ L.
The available logical operators are: AND, OR, XOR (exclusive or), NOT, and
SAME. The operators will produce results that are true or false, depending on
the truth-value of the logical statements affected. The operator NOT (negation)
applies to a single logical statements. All of the others apply to two logical
statements.
Tabulating all possible combinations of one or two statements together with the
resulting value of applying a certain logical operator produces what is called
the truth table of the operator
. The following are truth tables of each of the
standard logical operators available in the calculator:
p NOT p
10
01
pqp AND q
111
100
010
000
pqp OR q
111
101
011
000