Interval

Interval[{min,max}]

represents the range of values between min and max.

Interval[{min1,max1},{min2,max2},]

represents the union of the ranges min1 to max1, min2 to max2, .

Details

  • You can perform arithmetic and other operations on Interval objects.
  • Interval[{min,max}] represents the closed interval that includes both end points.
  • Min[interval] and Max[interval] give the end points of an interval.
  • For approximate machine or arbitraryprecision numbers x, Interval[x] yields an interval reflecting the uncertainty in x.
  • In operations on intervals that involve approximate numbers, the Wolfram Language always rounds lower limits down and upper limits up.
  • Interval can be used as a geometric region.
  • Interval can be generated by functions such as Limit.
  • Relational operators such as Equal and Less yield explicit True or False results whenever they are given disjoint intervals.

Examples

open allclose all

Basic Examples  (2)

Add intervals, getting an interval representing the result:

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

Indeterminate limits can give intervals:

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

Scope  (8)

Generalizations & Extensions  (1)

Applications  (5)

Properties & Relations  (1)

Possible Issues  (1)

See Also

Range  IntervalMemberQ  IntervalUnion  IntervalIntersection  Piecewise  NumberLinePlot  MinMax

Tutorials

Introduced in 1996
(3.0)
| Updated in 2014
(10.0)