Checks if the value is in the defined range.
The range definition is a list/iterator from:
-
float values belonging to the defined range x \in
{a}
-
2-tuples of two floats which define a range not including the tuple
values itself x \in ]a,b[
-
2-list of two floats which define a range including the list values
x \in [a,b]
The order of elements is not important. So could define the set of
integer numbers by a generator returning the following sequence: 0,1,-1,2,-2,3-,3,... .
It returns True if the value is in one of the defined ranges.
Otherwise it returns false.
|