Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Naive solution in Clear category for Boolean Algebra by obone
OPERATION = {
"conjunction" : lambda x, y: int(x and y),
"disjunction" : lambda x, y: int(x or y),
"implication" : lambda x, y: int((not x) or y),
"exclusive" : lambda x, y: int(x != y),
"equivalence" : lambda x, y: int(x == y)
}
boolean = lambda x, y, operation: OPERATION[operation](x, y)
Sept. 14, 2019
Comments: