Skip to content

Commit 9fc6bf7

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 6e1a80e commit 9fc6bf7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

boolean_algebra/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Boolean algebra is used to do arithmetic with bits of values True (1) or False (
44
There are three basic operations: 'and', 'or' and 'not'.
55
Special or derived operations are : 'NAND', 'NOR', 'XOR' and 'XNOR'
66

7-
AND :
7+
AND :
88
The AND operation in Boolean algebra gives a result of 1 (True) only when all the input variables are 1 (True).
99
If 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 :
2424
The OR operation gives a result of 1 (True) when at least one of the input variables is 1 (True).
2525
It gives 0 (False) only when all inputs are 0 (False).
2626

@@ -43,7 +43,7 @@ It inverts the value of the variable —
4343
if the input is 1 (True), the output becomes 0 (False), and vice versa.
4444

4545
Symbol: 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:
5656
The NAND operation is the inverse of the AND operation.
5757
It gives an output of 0 (False) only when all inputs are 1 (True).
5858
For 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:
7676
The NOR operation is the inverse of the OR operation.
7777
It gives an output of 1 (True) only when all inputs are 0 (False).
7878
If 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:
112112
The XNOR (Exclusive NOR) operation is the inverse of the XOR operation.
113113
It gives an output of 1 (True) when both inputs are the same — either both 0 or both 1.
114114
If the inputs are different, the output is 0 (False).

0 commit comments

Comments
 (0)