IntervalProd.__contains__

IntervalProd.__contains__(self, other)[source]

Return other in self.

Examples

>>> interv = IntervalProd(0, 1)
>>> 0.5 in interv
True
>>> 2 in interv
False
>>> 'string' in interv
False