def Unequal(*xs, simplify=True): """Expression inequality operator If *simplify* is ``True``, return a simplified expression. """ xs = [Expression.box(x).node for x in xs] y = exprnode.not_(exprnode.eq(*xs)) if simplify: y = y.simplify() return _expr(y)
def eq(self, other): """Boolean equal operator.""" other_node = self.box(other).node return _expr(exprnode.eq(self.node, other_node))