In mathematics, Boolean algebra is an algebra for binary digits (where 0 means false and 1 means true). It is equipped with three operators: conjunction (AND), disjunction (OR) and negation (NOT). It uses normal math symbols, but it does not work in the same way. It is named for George Boole, who invented it in the middle 19th century. Boolean algebra did not get much attention except from mathematicians until the 20th century when engineers began using it for logic gates.
NOT gate[change | change source]
The NOT operator is written with a bar over numbers or letters like this:
It means that the output is not the input.
AND gate[change | change source]
The AND operator is written as like this:
The output is true if and only if one and the other input is true.
OR gate[change | change source]
The OR operator is written as like this:
If one or the other input is true, then the output to be true (and false otherwise).
XOR gate[change | change source]
XOR basically means "exclusive or", meaning one input or the other must be true, but not both. It is also sometimes called NOR, which means the same thing.
The XOR operator is written as like this:
In other words, the XOR operator returns true precisely when one or the other input is true—but not both.
Identities[change | change source]
Different gates can be put together in different orders:
- is the same as an AND then a NOT. This is called a NAND gate.
It is not the same as a NOT then an AND:
which is called AND identity table
, if .[source?]
De Morgan's laws[change | change source]
Augustus De Morgan discovered that it is possible to preserve the truth values of Boolean expressions by changing a sign to a sign, while making or breaking a bar. That is:
These findings are commonly known as De Morgan's laws.
Related pages[change | change source]
References[change | change source]
- ↑ "Comprehensive List of Logic Symbols". Math Vault. 2020-04-06. Retrieved 2020-09-02.
- ↑ Weisstein, Eric W. "Boolean Algebra". mathworld.wolfram.com. Retrieved 2020-09-02.
- ↑ "Boolean algebra | Define Boolean algebra at Dictionary.com". Dictionary.reference.com. 1997-02-27. Retrieved 2010-08-12.
- ↑ 4.0 4.1 4.2 4.3 "Logic Gates". Kpsec.freeuk.com. Retrieved 2010-08-12.
- ↑ 5.0 5.1 "Elements of Boolean Algebra". www.ee.surrey.ac.uk. Retrieved 2020-09-02.
Other websites[change | change source]
- Boolean algebra on All About Circuits
- Boolean algebra Citizendium