Method on @infsup: mod (X, Y)

Compute the modulus of X and Y.

Conceptionally, it is given by the expression X - Y .* floor (X ./ Y). This function is undefined for Y = 0.

Accuracy: The result is a valid enclosure.

mod (infsup (3), infsup (2))
  ⇒ ans = [1]
mod (infsup (-3), infsup (2))
  ⇒ ans = [1]

See also: @infsup/rdivide, @infsup/rem.

Package: interval