irreducible polynomial code
asked 2016-08-03 09:51:19 -0500
This post is a wiki. Anyone with karma >750 is welcome to improve it.
K.<a>=GF(2^3) A = [0,1,a,a^2,a^3,a^4,a^5,a^6] for i=0 in [A] for j=0 in [A] f(x)=x^2+A[i]x+A[j] print f(x)
I have written this code to generate irreducible polynomial f(x) by taking different values from A so it is represent A[i] and A[j] but its gives me error.