1.4 KiB
1.4 KiB
title
| title |
|---|
| Algebra of Logic |
Algebra of Logic
Algebra of Logic or Boolean algebra is a branch of mathematics. It deals with variables and their truth value. The variables have two possible states – true or false.
It was first introduced by George Boole in his book The Mathematical Analysis of Logic (1847).
Boolean algebra is fundamental to the development of digital electronics. It is responsible for making possible all modern computing.
The three basic operations in Boolean Algebra are AND, OR, and NOT. Consider two boolean variables x and y:
x AND yis true if and only if bothxandyare truex OR yis true if either ofxoryare trueNOT xis true if and only ifxis false and vice versa
NOT of boolean statements can be refactored to apply directly to each variable. Consider the following :
NOT (x AND y) = NOT x OR NOT yNOT (x OR y) = NOT x AND NOT y
The above statements are called "De Morgan's Laws." This is a very useful and important law in Boolean Algebra.
More Information:
- Boolean algebra article: Wikipedia
- The Calculus of Logic: George Boole
- Boolean Algebra Demonstration: Wolfram MathWorld
- De Morgan's laws: Wikipedia