tkluck / GaloisFields.jl

Finite fields for Julia
Other
47 stars 6 forks source link

macro syntax for extension field: Use base field variable in minimum polynomial #9

Open tkluck opened 4 years ago

tkluck commented 4 years ago

As requested by @kirtsar in #8:

F2 = @GaloisField 2
F4 = @GaloisField! F2 x^2 + x + 1
# t^3 + x is irreducible over F4
@GaloisField! F4 t^3 - x
# ERROR: LoadError: Polynomials must have same variable
# However, the straight construction works well:
F64 = GaloisField(F4, :t => [1, 0, 0, x])