October 2019
Beginner
407 pages
6h 50m
English
It’s time to rehearse some logic theory. Don’t panic, because we will look at only what we need: NOT, OR, XOR, and AND.
In this chapter, 0 means false, and 1 means true.
A | 0 | 1 |
NOT A | 1 | 0 |
Convert every 0 into 1 and every 1 into 0.
A | 0 | 1 | 0 | 1 |
B | 0 | 0 | 1 | 1 |
A OR B | 0 | 1 | 1 | 1 |
If there is a 1 in A or B or in both, the outcome is a 1.
A | 0 | 1 | 0 | 1 |
B | 0 | 0 | 1 | 1 |
A XOR B | 0 | 1 | 1 | 0 |
Exclusive OR: If there is a 1 in A or B, the outcome is a 1. If A and B are both 1 or 0, the outcome is 0.
Read now
Unlock full access