Method on @infsup: R = rad (X)
Method on @infsup: [M, R] = rad (X)

Get the radius (and midpoint) of interval X.

If X is empty, rad (X) is NaN. If X is unbounded in one or both directions, rad (X) is positive infinity.

With two output parameters the midpoint and radius are computed.

Accuracy: The radius R will make a tight enclosure of the interval together with midpoint M.

rad (infsup (2.5, 3.5))
  ⇒ ans = 0.5000

See also: @infsup/inf, @infsup/sup, @infsup/mid, @infsup/wid.

Package: interval