Subsection 2.3.1 Building Truth Tables for More Complex Logical Expressions
If this were arithmetic, instead of logic, we would now know how to add, subtract, multiply, divide, and change the sign of a number. But we want to do more complex things (like adding three numbers). Similarly for logical expressions. We want to be able to combine multiple operators to form a single meaningful expression. To do this, we must be able to build more complex truth tables. Let’s start with a two-operator expression:p | q | p ∧ q |
---|---|---|
T | T | T |
T | F | F |
F | T | F |
F | F | F |
p | q | p ∧ q | (p ∧ q) ∨ p |
---|---|---|---|
T | T | T | |
T | F | F | |
F | T | F | |
F | F | F |
p | q | p ∧ q | (p ∧ q) ∨ p |
---|---|---|---|
T | T | T | T |
T | F | F | |
F | T | F | |
F | F | F |
p | q | p ∧ q | (p ∧ q) ∨ p |
---|---|---|---|
T | T | T | T |
T | F | F | T |
F | T | F | |
F | F | F |
p | q | p ∧ q | (p ∧ q) ∨ p |
---|---|---|---|
T | T | T | T |
T | F | F | T |
F | T | F | F |
F | F | F | F |