def __ge__(self, other): dif = self - other if dif.is_nonnegative != dif.is_negative: return dif.is_nonnegative return C.Inequality(other, self)
def __le__(self, other): dif = self - other if dif.is_nonpositive != dif.is_positive: return dif.is_nonpositive return C.Inequality(self, other)