Skip to content

IntervalUnion

IntervalUnion(interval_1, interval_2, ...)

compute the union of the intervals interval_1, interval_2, ...

See:

Examples

>> IntervalUnion(Interval({1, 2}, {3, 4}, {5, 7}, {8, 8.5}), Interval({1.5, 3.5}, {4.1, 6}, {9, 10}))
Interval({1,4},{4.1,7},{8,8.5},{9,10})

Interval, IntervalIntersection, IntervalMemberQ

Implementation status

  • ✅ - full supported

Github