예제 #1
1
def xor(a, b):
    return aand(nand(a,b),oor(a,b))
예제 #2
1
def xor(a, b):
    return aand(nand(a, b), oor(a, b))
예제 #3
0
def nor(a, b):
    return nnot(oor(a,b))
예제 #4
0
def fulladder(a, b, c):
    return {'c':oor(halfadder(a,b)['c'],halfadder(halfadder(a,b)['o'],c)['c']),'o':halfadder(halfadder(a,b)['o'],c)['o']}
예제 #5
0
def nor(a, b):
    return nnot(oor(a, b))