Ask Your Question

Revision history [back]

How to handle elements of two different Galios fields simultaneously?

I would like to operate the elements of two different fields simultaneously. I have used the following codes, both are not working at the same time where as only one work at a time.

G.<x> = GF(2^8, name='x', modulus=x^8 + x^5 + x^3 + x + 1)
F.<x> = GF(2^3, name='x', modulus=x^3 + x^2 + 1)

for i in range(2^3):
    print G.fetch_int(i).integer_representation(),'=',G.fetch_int(i)
    print  F.fetch_int(i).integer_representation(), '=',F.fetch_int(i)

How to handle elements of two different Galios fields simultaneously?

I would like to operate the elements of two different fields simultaneously. I have used the following codes, both are not working at the same time where as only one work at a time.

G.<x> = GF(2^8, name='x', modulus=x^8 + x^5 + x^3 + x + 1)
F.<x> = GF(2^3, name='x', modulus=x^3 + x^2 + 1)

for i in range(2^3):
    print G.fetch_int(i).integer_representation(),'=',G.fetch_int(i)
    print  F.fetch_int(i).integer_representation(), '=',F.fetch_int(i)

How to handle elements of two different Galios Galois fields simultaneously?

I would like to operate the elements of two different fields simultaneously. I have used the following codes, both are not working at the same time where as whereas only one work at a time.

G.<x> = GF(2^8, name='x', modulus=x^8 + x^5 + x^3 + x + 1)
F.<x> = GF(2^3, name='x', modulus=x^3 + x^2 + 1)

for i in range(2^3):
    print G.fetch_int(i).integer_representation(),'=',G.fetch_int(i)
G.fetch_int(i).integer_representation(), '=', G.fetch_int(i)
    print  F.fetch_int(i).integer_representation(), '=',F.fetch_int(i)
'=', F.fetch_int(i)