Compute the inner distance between two intervals as sets.
The inner distance for closed real intervals is the minimum distance between each pair of numbers. That is, the inner distance equals zero if a number can be found in both intervals. Otherwise the inner distance is the size of the gap between both intervals on the real number lane.
If any interval is empty, the result is NaN. For interval arrays the result is computed entry-wise.
Accuracy: The result is correctly-rounded (towards infinity).
idist (infsup (0, 6), infsup (7, 20)) ⇒ ans = 1
See also: @infsup/sdist, @infsup/hdist.
Package: interval