@@ -4,7 +4,7 @@ Boolean algebra is used to do arithmetic with bits of values True (1) or False (
44There are three basic operations: 'and', 'or' and 'not'.
55Special or derived operations are : 'NAND', 'NOR', 'XOR' and 'XNOR'
66
7- AND :
7+ AND :
88The AND operation in Boolean algebra gives a result of 1 (True) only when all the input variables are 1 (True).
99If any input is 0 (False), the output will be 0 (False).
1010
@@ -20,7 +20,7 @@ then A AND B means “I study and I sleep early”.
2020 | 1 | 1 | 1 |
2121 ------------------------------
2222
23- OR :
23+ OR :
2424The OR operation gives a result of 1 (True) when at least one of the input variables is 1 (True).
2525It gives 0 (False) only when all inputs are 0 (False).
2626
@@ -43,7 +43,7 @@ It inverts the value of the variable —
4343if the input is 1 (True), the output becomes 0 (False), and vice versa.
4444
4545Symbol: Overline ( ̅ ), ¬, or !
46- Example : If A = “It’s raining”, then NOT A means “It’s not raining”.
46+ Example : If A = “It’s raining”, then NOT A means “It’s not raining”.
4747
4848 ------------------------------
4949 | A | A̅ |
@@ -52,7 +52,7 @@ Example : If A = “It’s raining”, then NOT A means “It’s not raining”
5252 | 1 | 0 |
5353 ------------------------------
5454
55- NAND:
55+ NAND:
5656The NAND operation is the inverse of the AND operation.
5757It gives an output of 0 (False) only when all inputs are 1 (True).
5858For all other combinations, the output is 1 (True).
@@ -72,7 +72,7 @@ then A NAND B means “It’s not true that I study and sleep early both.”
7272 | 1 | 1 | 0 |
7373 ------------------------------
7474
75- NOR:
75+ NOR:
7676The NOR operation is the inverse of the OR operation.
7777It gives an output of 1 (True) only when all inputs are 0 (False).
7878If any input is 1 (True), the output becomes 0.
@@ -108,7 +108,7 @@ then A XOR B means “I study or I sleep early, but not both.”
108108 | 1 | 1 | 0 |
109109 ------------------------------
110110
111- XNOR:
111+ XNOR:
112112The XNOR (Exclusive NOR) operation is the inverse of the XOR operation.
113113It gives an output of 1 (True) when both inputs are the same — either both 0 or both 1.
114114If the inputs are different, the output is 0 (False).
0 commit comments