Legacy Documentation

Mathematica CalcCenter 2 (2002)

This is documentation for an obsolete product.
Current products and services

Documentation / CalculationCenter / Functions / Basic Math / Other Functions /

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 m and n Mod[m, n] lies between 0 and .

FilledSmallSquare Mod[m, n, 1] gives a result in the range 1 to n, suitable for use in functions such as Part.

FilledSmallSquare Mod[m, n, d] gives a result x 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 The arguments of Mod can be any numeric quantities, not necessarily integers.

FilledSmallSquare Mod[x, 1] gives the fractional part of x.

Examples

Using InstantCalculators

Here is the InstantCalculator for the Mod function. Enter the parameters for your calculation and click Calculate to see the result.

In[1]:=

Out[1]=

Entering Commands Directly

You can paste a template for this command via the Text Input button on the Mod Function Controller.

Here are a few examples of division remainders.

In[2]:=

Out[2]=

In[3]:=

Out[3]=

In[4]:=

Out[4]=



ja