Logical operators, Logical operators ,21-45 – HP 50g Graphing Calculator User Manual

Page 692

Advertising
background image

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

1

0

0

1

p

q

p AND q

1

1

1

1

0

0

0

1

0

0

0

0

p

q

p OR q

1

1

1

1

0

1

0

1

1

0

0

0

Advertising