Legacy Documentation

Mathematica® Teacher's Edition (2002)

This is documentation for an obsolete product.
Current products and services
 Documentation /  Mathematica Teacher's Edition /  Built-in Functions /  Mathematical Functions /  Number Theory /

Mod

FilledSmallSquare Mod[m, n] gives the remainder on division of m by n.
FilledSmallSquare Mod[m, n, d] uses an offset d.

FilledSmallSquare For integers and Mod[m, n] lies between 0 and .
FilledSmallSquare Mod[m, n, 1] gives a result in the range to , suitable for use in functions such as Part.
FilledSmallSquare Mod[m, n, d] gives a result such that and .
FilledSmallSquare The sign of Mod[m, n] is always the same as the sign of n, at least so long as m and n are both real.
FilledSmallSquare Mod[m, n] is equivalent to m - n Quotient[m, n].
FilledSmallSquare Mod[m, n, d] is equivalent to m - n Quotient[m, n, d].
FilledSmallSquare The arguments of Mod can be any numeric quantities, not necessarily integers.
FilledSmallSquare Mod[x, 1] gives the fractional part of x.
FilledSmallSquare For exact numeric quantities, Mod internally uses numerical approximations to establish its result.
FilledSmallSquare See The Mathematica Book on the web: Section 1.1.3 and Section 3.2.4.
FilledSmallSquare See also: PowerMod, Quotient, FractionalPart, PolynomialMod, PolynomialRemainder, Xor.