Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Boolean Algebra solution in Clear category for Boolean Algebra by mz97
def boolean(x, y, operation):
if operation=="conjunction": return x and y
elif operation=="disjunction": return x or y
elif operation=="implication": return not x or y
elif operation=="exclusive": return (x or y) and not (x and y)
else: return not ((x or y) and not (x and y))
Oct. 26, 2016