The idea
Key formulas
AND
OR
Loading lessons…
Just a moment, getting everything ready. The first load can take up to a minute.
Discrete maths
Logic gates implement Boolean functions by mapping one or two binary inputs to a binary output.
Boolean variables take values or . An AND gate outputs 1 only when both inputs are 1; OR outputs 1 when either input is 1; NOT reverses one input. NAND and NOR negate AND and OR, and XOR is true when inputs differ.