Create a residue class of modulus with residue representative.
Get the value of modulus.
Get the value of residue.
Get a ring to which it belongs.
Return the inverse element if it is invertible. Otherwise raise ValueError.
Return the smallest non-negative representative element of the residue class.
+ | addition |
- | subtraction |
* | multiplication |
/ | division |
**, pow | power |
== | equality |
!= | inequality |
-(unary) | negation |
+(unary) | make a copy |
repr | repr string like 'IntegerResidueClass(1, 3)' |
str | same as repr |