xor.bz
M. Swenson · Workbench
Hi there! I'm M. Swenson, an independent student of computer science with a deep appreciation for the roots of computing. My work centers on programming in C and Perl, writing shell scripts, and exploring cryptography.
Q = A ⊕ B
Table 1. The truth matrix and associated boolean expression for the XOR operation. Note that the output is true if and only if the inputs differ.
| Input A | Input B | Output Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |