Boolean Math only has 3 basic logic gates: AND, OR and NOT.
This patch adds 6 additional logic gates for convenience and ease of use:
- Not And (NAND) returns true when at least one input is false.
- Nor (NOR) returns true when both inputs are false.
- Equal (XNOR) returns true when both inputs are equal.
- Not Equal (XOR) returns true when both inputs are different.
- Imply (IMPLY) returns true unless the first input is true and the second is false.
- Subtract (NIMPLY) returns true when the first input is true and the second is false.
