Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Boolean Algebra by rybld2
OPERATION_NAMES = ("conjunction", "disjunction", "implication", "exclusive", "equivalence")
def boolean(x, y, operation):
resu = (x * y, min(x + y, 1), min(1 - x + y, 1), int(x != y), int(x == y))
dic = dict(zip(OPERATION_NAMES, resu))
return dic[operation]
Jan. 7, 2021
Comments: