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