111
1011
10011
100101
1000011
10001001
100011101
1000010001
10000001001
1000001010011
from GaloisField import gf
#construction of Galois Field GF(2³)
m = 3
GF = gf(m)
>>> GF(2³)
GF.modPol_pr()
>>> α³ + α¹ + α⁰
GF.modPol_vr()
>>> 1011
alphas = GF.getElements()
alphas
>>> [001, 010, 100, 011, 110, 111, 101]
alphas[1]
>>> 010
alphas[1].getAlpha()
>>> α¹
alphas[0] + alphas[1]
>>> 011
alphas[1] * alphas[2]
>>> 011
- alphas[1]
>>> 101
alphas[5] / alphas[2]
>>> 011
alphas[2] ** 3
>>> 101