integerResidueClass.py

IntegerResidueClass class

constructor

IntegerResidueClass(representative, modulus)

Create a residue class of modulus with residue representative.

methods

getModulus()

Get the value of modulus.

getResidue()

Get the value of residue.

getRing()

Get a ring to which it belongs.

inverse()

Return the inverse element if it is invertible. Otherwise raise ValueError.

toInteger()

Return the smallest non-negative representative element of the residue class.

operators

+addition
-subtraction
*multiplication
/division
**, powpower
==equality
!=inequality
-(unary)negation
+(unary)make a copy
reprrepr string like 'IntegerResidueClass(1, 3)'
strsame as repr

Last-modified: 2005-10-26 (¿å) 18:09:16