This page has not been looked at yet My apologies for any issues this may cause.
4.2.5 : Nand
Just as OR had NOR, AND has NAND. NAND is the combination of NOT and AND. This means the truth table is just the AND truth table with the results inverted. NAND is true as long as both the values are not true. Fun Fact: NOR and NAND are considered the universal gates, as using a combination of these two can create any gate.
Notation: x NAND y
x | y | x NAND y |
---|---|---|
0 | 0 | 1 |
0 | 1 | 1 |
1 | 0 | 1 |
1 | 1 | 0 |
NAND is much like NOR, as mathematically, there isn't an exact equivalent. However, just like NOR, NAND is a universal gate.
A Universal Gate
Just like NOR, NAND is a universal gate. All gates can be made with NAND. We can create a NOT gate by putting the same input twice into a NAND. This means we can do NOT NAND which is AND. Finally we can apply DeMorgan's law to get OR. We'll talk more about DeMorgan's law in the Complex Expressions page.
x | x NAND x | NOT x |
---|---|---|
0 | 1 | 1 |
1 | 0 | 0 |
x | y | (x NAND x) NAND (y NAND y) |
x OR y |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 1 | 1 | 1 |
1 | 0 | 1 | 1 |
1 | 1 | 1 | 1 |
x | y | (x NAND y) NAND (x NAND y) |
x AND y |
---|---|---|---|
0 | 0 | 0 | 0 |
0 | 1 | 0 | 0 |
1 | 0 | 0 | 0 |
1 | 1 | 1 | 1 |
Practice Problems
If y is false and x is true, what is (x NAND ¬ y)?