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.
IntervalMemberQ[interval]
represents an operator form of IntervalMemberQ that can be applied to a number.
Details
- The interval can be any of:
-
CenteredInterval[…] interval given by center and radius Interval[…] interval given by end points - IntervalMemberQ[interval][x] is equivalent to IntervalMemberQ[interval,x].
- IntervalMemberQ has attribute Listable.
Examples
open allclose allBasic Examples (2)
Scope (3)
IntervalMemberQ tests whether one interval lies within another:
Exact numbers do not define an extended interval:
Use IntervalMemberQ as an operator form:
Text
Wolfram Research (1996), IntervalMemberQ, Wolfram Language function, https://reference.wolfram.com/language/ref/IntervalMemberQ.html (updated 2021).
CMS
Wolfram Language. 1996. "IntervalMemberQ." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. 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