Initial SymPy benchmark suite
[sympy.git] / sympy / core / interval.py
blob86d0aba08cb44570a8876472203352fec01310e1
2 from basic import Basic
3 from sympify import _sympify
5 class Interval(Basic):
7 def __new__(cls, start, end, **assumptions):
8 start = _sympify(start)
9 end = _sympify(end)
10 return Basic.__new__(cls, start, end, **assumptions)
12 @property
13 def start(self):
14 return self._args[0]
16 @property
17 def end(self):
18 return self._args[1]
20 # /cyclic/
21 import sympify as _
22 _.Interval = Interval
23 del _