Boolean Operators
The AND operator () can be defined by the following truth table:
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The OR operator () can be defined by the following truth table:
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
The XOR (eXclusive OR) operator () can be defined by the following truth table:
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
The unary NOT operator () can be defined by the following truth table:
| A | Q |
|---|---|
| 0 | 1 |
| 1 | 0 |
Composite Operations
There are some very common operations that are best defined as formulae involving other operations. For example:
A NOR BisA NAND BisA XNOR Bis
De Morgan’s Laws
De Morgan’s Laws state that:
and
Associativity and Commutativity
AND, OR and XOR are all both associative and commutative.