finitefield.py

FinitePrimeField class

Finite prime field is also known as F_p or GF(p). It has prime number cardinality.

Constructor

FinitePrimeField(characteristic)

Create a FinitePrimeField instance with the given characteristic.

Methods

createElement(seed)

Create FinitePrimeFieldElement with seed.

getCharacteristic()

Return the characteristic of the field.

issubring(other)

Report whether another ring contains the field as a subring.

issuperring(other)

Report whether the field is a superring of another ring. Since the field is a prime field, it can be a superring of itself only.

Methods inherited from ring.Field

gcd(a, b), getQuotientField(), isfield()

Methods inherited from ring.CommutativeRing.

isdomain(), iseuclidean(), isnoetherian(), ispid(), isufd()

Operators

inmembership test
==equality
lenCardinality of the field

Properties

(These properties are new in 0.4.1)


Last-modified: 2005-10-26 (¿å) 16:11:29