Skip to content

Commit 09f6573

Browse files
authored
Update mathblool.py
1 parent d2edef7 commit 09f6573

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mathblool.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ def NOT(a):
2121

2222
def OR(a, b):
2323
print("OR", a, b)
24-
return abs(a - b) + (a * b)
24+
return XOR(a, b) + AND(a, b)
2525

2626

2727
def NOR(a, b):
2828
print("NOR", a, b)
29-
return 1 - (abs(a - b) + (a * b))
29+
return NOT(OR(a, b))
3030

3131

3232
def NAND(a, b):
3333
print("NAND", a, b)
34-
return 1 - (a * b)
34+
return NOT(AND(a, b))
3535

3636

3737
print("----------")

0 commit comments

Comments
 (0)