klefki.algebra.fields.primefield

Module Contents

Classes

PrimeField

A FIELD is a set F which is closed under two operations + and × s.t.

class klefki.algebra.fields.primefield.PrimeField(*args)

Bases: klefki.algebra.abstract.Field

A FIELD is a set F which is closed under two operations + and × s.t. (1) Fis an abelian group under + and (2) F-{0} (the set F without the additive identity 0) is an abelian group under ×.

P
from_int(self, o)
from_PrimeField(self, o)
from_complex(self, o)
inverse(self)

Implement for axiom inverse

mod(self, a, b)
sec_inverse(self)

Implement for axiom inverse

op(self, g)

The Operator for obeying axiom associativity (2)

sec_op(self, g)

The Operator for obeying axiom associativity (2)

klefki.algebra.fields.primefield.FiniteField
klefki.algebra.fields.primefield.Fq