Skip to content

Mod

The remainder of a on division by b.

Mod(a, b)remainder of on division by , with the sign of .

Domain: Number theory

Details
  • Equivalent to , i.e. .
  • When the result lies in ; the sign of the result always matches the sign of .
  • Periodic: for any integer .
  • compute-engine returns NaN for a zero modulus rather than leaving the call unevaluated.
  • compute-engine only supports the 2-argument form.

Examples

See also: PowerMod