Пример #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)
Пример #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)
Пример #3
0
 def __xor__(self, other):
     other_node = self.box(other).node
     return _expr(exprnode.xor(self.node, other_node))
Пример #4
0
 def __xor__(self, other):
     other_node = self.box(other).node
     return _expr(exprnode.xor(self.node, other_node))