i5 = i1 + i2
i6 = Interval(Rational(1, 2), Rational(45, 3), left_open=True)
print(11 in i1)
print(-1 in i1)
print(0 in i4)
print(Rational(3, 2) in i6)
print(oo in i2)
print(i2.sup)
print(Rational(1, 2) in i6)
print(i6.inf)
Is there an implementation of _rational_ interval arithmetic in Python?