|
__init__(self,
lo=-1.0,
hi=1.0)
Interval constructor...creates an interval [lo,hi] |
source code
|
|
|
mean(self)
Returns the midpoint of this interval |
source code
|
|
|
__add__(self,
other)
Enables I1+I2 and I1+x |
source code
|
|
|
|
|
__sub__(self,
other)
Enables I1-I2 and I1-x |
source code
|
|
|
__mul__(self,
other)
Enables I1*I2 and I1*x |
source code
|
|
|
__div__(self,
other)
Enables I1/I2 and I1/x |
source code
|
|
|
|
|
|
|
__eq__(self,
other)
Enables I1==I2 and I1==x |
source code
|
|
|
__ne__(self,
other)
Enables I1!=I2 and I1!=x |
source code
|
|
|
__le__(self,
other)
Enables I1<=I2 and I1<=x |
source code
|
|
|
__ge__(self,
other)
Enables I1>=I2 and I1>=x |
source code
|
|
|
__contains__(self,
other)
Enables I2 in I1 and x in I1 |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isPoint(self)
Returns true iff the interval is a point interval |
source code
|
|
|
width(self)
Returns the float width of this interval |
source code
|
|