mod
synopsis: INT mod(OP a,b,c)
description:
Computes a mod b, where a,b could be out of INTEGER or
LONGINT. The result is always positive,
12 mod 5 = 2
-12 mod 5 = 3
12 mod -5 = 2
-12 mod -5 = 3
The variables a b c may be equal, c is freed first
The routine also works if the first parameter is a MATRIX
object and the second parameter is a INTEGER object, in this
case the routine is applied to all entries of the matrix.
return:
ERROR if b is 0
bugs:
MONOPOLY and POLYNOM would be useful
Send comments or suggestions to:
symmetrica (at) symmetrica
this page was automatically generated on So Aug 10 12:23:24 CEST 2008 on the machine btn6xa