Skip to content

Commit

Permalink
Update mathblool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
daedalus authored Dec 26, 2024
1 parent d2edef7 commit 09f6573
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mathblool.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@ def NOT(a):

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


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


def NAND(a, b):
print("NAND", a, b)
return 1 - (a * b)
return NOT(AND(a, b))


print("----------")
Expand Down

0 comments on commit 09f6573

Please sign in to comment.