De Morgan's laws

From testwiki
Revision as of 07:31, 9 June 2022 by imported>Lights and freedom (removed Category:Algebra; added Category:Boolean algebra using HotCat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

In boolean algebra, DeMorgan's laws are the laws of how a NOT gate affects AND and OR statements:[1]

AB=A+B
A+B=AB

They can be remembered by "break the line, change the sign".

Truth tables

The following truth tables prove DeMorgan's laws.

INPUT OUTPUT 1 OUTPUT 2
A B NOT (A AND B) (NOT A) OR (NOT B)
0 0 1 1
0 1 1 1
1 0 1 1
1 1 0 0
INPUT OUTPUT 1 OUTPUT 2
A B NOT (A OR B) (NOT A) AND (NOT B)
0 0 1 1
0 1 0 0
1 0 0 0
1 1 0 0

Template:-

References

Template:Reflist


Template:Math-stub