´

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.de

this page was automatically generated on So Jan 4 10:35:44 CET 2009 on the machine btn6xf

University of Bayreuth -