Boolean Operators

The AND operator () can be defined by the following truth table:

ABQ
000
010
100
111

The OR operator () can be defined by the following truth table:

ABQ
000
011
101
111

The XOR (eXclusive OR) operator () can be defined by the following truth table:

ABQ
000
011
101
110

The unary NOT operator () can be defined by the following truth table:

AQ
01
10

Composite Operations

There are some very common operations that are best defined as formulae involving other operations. For example:

  • A NOR B is
  • A NAND B is
  • A XNOR B is

De Morgan’s Laws

De Morgan’s Laws state that:

and

Associativity and Commutativity

AND, OR and XOR are all both associative and commutative.