IntervalMemberQ

IntervalMemberQ[interval,x]

gives True if the number x lies within the specified interval, and False otherwise.

IntervalMemberQ[interval1,interval2]

gives True if interval2 is completely contained within interval1.

Details

Examples

open allclose all

Basic Examples  (1)

Test whether lies in the interval 2 through 5:

In[1]:=
Click for copyable input
Out[1]=

Scope  (2)

See Also

Interval  IntervalIntersection  Between  MemberQ  PossibleZeroQ  Nearest

Tutorials

Introduced in 1996
(3.0)