Method on @infsup: setdiff (A, B)

Build the relative complement of interval B in interval A.

Accuracy: The result is a tight enclosure.

x = infsup (1, 3);
y = infsup (2, 4);
setdiff (x, y)
  ⇒ ans = [1, 2]

See also: @infsup/intersect, @infsup/union, @infsup/setxor.

Package: interval