


![[top]](top.gif)
Synopsis:
GF(q) -- make a Galois field with q elements, where q is a power of a prime.
i1 : k = GF(8) |
i2 : x = k_0 |
i3 : x+x^2 |
Code:
-- ../../../Macaulay2/m2/galois.m2:66-70
GF(ZZ) := GaloisField => options -> (q) -> (
factors := factor q;
if #factors =!= 1 or factors#0#0 === -1
then error "expected a power of a prime";
GF(factors#0#0,factors#0#1,options))



![[top]](top.gif)