Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica >

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.
Test whether Pi lies in the interval 2 through 5:
Test whether Pi lies in the interval 2 through 5:
In[1]:=
Click for copyable input
Out[1]=
IntervalMemberQ tests whether one interval lies within another:
Exact numbers do not define an extended interval:
Approximate numbers do:
New in 3
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team