Ask Your Question

What is the .modulus() function doing?

asked 2018-12-28 22:23:03 -0600

Stockfish3709 gravatar image

I came across this tutorial from Sage that I couldn't get.

Below is the code.

k.<a> = GF(2^1024)
Output: x^1024 + x^19 + x^6 + x + 1

What is going on here?

I understand that the polynomials' coefficients are either 0 or 1, and the degree of the polynomial is not more than 1024, but how does Sage assign them? And also, what is the modulus of the polynomial? I have never came before such a term and I couldn't find any such concepts on the internet.

Thanks for the help in advance.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2018-12-30 04:19:42 -0600

FrédéricC gravatar image


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-12-28 22:22:29 -0600

Seen: 108 times

Last updated: Dec 28 '18