Skip to content

alpha vs. x as polynomial variable in GF(q^m)? #570

Answered by mhostetter
donludovico asked this question in Q&A
Discussion options

You must be logged in to vote

The convention I used is that if x is a primitive element of the field, which happens when the irreducible polynomial is primitive, then alpha = x so I write the polynomial indeterminate as alpha. The powers of alpha always generate the multiplicative group. When alpha is more complicated than x, eg x + 1, I leave the polynomial indeterminate as x. I think this is a standard convention. Here's an example.

poly = galois.primitive_poly(2, 4)
assert poly.is_primitive()
GF = galois.GF(2**4, irreducible_poly=poly, repr="poly")
print(GF.primitive_element)  # Primitive element is x, so we replace x with alpha
print(GF.elements)

α
[                0                 1                 α             α

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@donludovico
Comment options

Answer selected by donludovico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants