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:

Scope  (2)

IntervalMemberQ tests whether one interval lies within another:

Exact numbers do not define an extended interval:

Approximate numbers do:

Wolfram Research (1996), IntervalMemberQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntervalMemberQ.html.

Text

Wolfram Research (1996), IntervalMemberQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntervalMemberQ.html.

BibTeX

@misc{reference.wolfram_2020_intervalmemberq, author="Wolfram Research", title="{IntervalMemberQ}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/IntervalMemberQ.html}", note=[Accessed: 03-December-2020 ]}

BibLaTeX

@online{reference.wolfram_2020_intervalmemberq, organization={Wolfram Research}, title={IntervalMemberQ}, year={1996}, url={https://reference.wolfram.com/language/ref/IntervalMemberQ.html}, note=[Accessed: 03-December-2020 ]}

CMS

Wolfram Language. 1996. "IntervalMemberQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IntervalMemberQ.html.

APA

Wolfram Language. (1996). IntervalMemberQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntervalMemberQ.html