Function: exacttointerval (S)
Function: exacttointerval (L, U)
Function: exacttointerval (M)

Create a bare interval. Fail, if the interval cannot exactly represent the input.

Typically, this function operates on interval literals S. It is also possible to pass lower and upper boundaries L and U, or create a point-interval with a midpoint M.

All valid input formats of the infsup class constructor are allowed. By giving a cell as input it is possible to create N-dimensional interval arrays. If this function creates an interval array, all interval boundaries must be representable with binary64 numbers.

Accuracy: The equation X == exacttointerval (intervaltoexact (X)) holds for all intervals.

w = exacttointerval ("[ ]")
  ⇒ w = [Empty]
x = exacttointerval ("[2, 3]")
  ⇒ x = [2, 3]
y = exacttointerval ("[,]")
  ⇒ y = [Entire]
z = exacttointerval ("[21e-1]")
  -| ??? exacttointerval: interval wouldn't be exact

See also: @infsup/intervaltoexact, @infsup/infsup.

Package: interval