repo.or.cz
/
sympy.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Initial SymPy benchmark suite
[sympy.git]
/
sympy
/
core
/
interval.py
blob
86d0aba08cb44570a8876472203352fec01310e1
1
2
from
basic
import
Basic
3
from
sympify
import
_sympify
4
5
class
Interval
(
Basic
):
6
7
def
__new__
(
cls
,
start
,
end
, **
assumptions
):
8
start
=
_sympify
(
start
)
9
end
=
_sympify
(
end
)
10
return
Basic
.__
new
__
(
cls
,
start
,
end
, **
assumptions
)
11
12
@property
13
def
start
(
self
):
14
return
self
._
args
[
0
]
15
16
@property
17
def
end
(
self
):
18
return
self
._
args
[
1
]
19
20
# /cyclic/
21
import
sympify
as
_
22
_
.
Interval
=
Interval
23
del
_