integerResidueClass.py

IntegerResidueClassRing class

The class is for rings of integer residue classes. A subclass of nzmath.ring.CommutativeRing.

constructor

IntegerResidueClassRing(modulus)

The argument modulus = m specifies an ideal mZ.

methods

isfield()

Return True if the modulus is prime, False if not. Since a finite domain is a field, other ring property tests are merely aliases of isfield; they are isdomain, iseuclidean, isnoetherian,ispid, isufd

createElement(seed)

Create a IntegerResidueClass instance with seed.

issubring(other)

issuperring(other)

class method

getInstance(cls, modulus)

Return an instance of the class of specified modulus. Since this is a class method, use it as:

IntegerResidueClassRing.getInstance(3)

to create a Z/3Z object, for example.

operators

inwhether an element is in the ring or not.
==equality
reprreturn repr string like "IntegerResiduClassRing(3)".
strreturn str string like "Z/3Z".

Last-modified: 2005-10-26 (¿å) 16:08:40