Esempio n. 1
0
def Xnor(*xs, simplify=True):
    """Expression exclusive nor (XNOR) operator

    If *simplify* is ``True``, return a simplified expression.
    """
    xs = [Expression.box(x).node for x in xs]
    y = exprnode.not_(exprnode.xor(*xs))
    if simplify:
        y = y.simplify()
    return _expr(y)
Esempio n. 2
0
def Xnor(*xs, simplify=True):
    """Expression exclusive nor (XNOR) operator

    If *simplify* is ``True``, return a simplified expression.
    """
    xs = [Expression.box(x).node for x in xs]
    y = exprnode.not_(exprnode.xor(*xs))
    if simplify:
        y = y.simplify()
    return _expr(y)
Esempio n. 3
0
 def __xor__(self, other):
     other_node = self.box(other).node
     return _expr(exprnode.xor(self.node, other_node))
Esempio n. 4
0
 def __xor__(self, other):
     other_node = self.box(other).node
     return _expr(exprnode.xor(self.node, other_node))