|
@ -1,10 +1,10 @@ |
|
|
def identity_disconjunctive(variable, operator, zero): |
|
|
|
|
|
if zero == 0 and operator == "+": |
|
|
|
|
|
return variable |
|
|
|
|
|
elif variable == 0 and zero == 1: |
|
|
|
|
|
return 1 |
|
|
|
|
|
else: |
|
|
|
|
|
|
|
|
def identity_disconjunctive(first_input, operator, second_input): |
|
|
|
|
|
if first_input == 1 and second_input == 1: |
|
|
return None |
|
|
return None |
|
|
|
|
|
elif first_input == 0 and second_input == 0: |
|
|
|
|
|
return 0 |
|
|
|
|
|
else: |
|
|
|
|
|
return 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def identity_conjunctive(variable, operator, zero): |
|
|
def identity_conjunctive(variable, operator, zero): |
|
|