ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sun, 30 Dec 2018 11:19:42 +0100What is the .modulus() function doing?https://ask.sagemath.org/question/44803/what-is-the-modulus-function-doing/I came across this tutorial from Sage that I couldn't get.
Below is the code.
k.<a> = GF(2^1024)
k.modulus()
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.Sat, 29 Dec 2018 05:22:29 +0100https://ask.sagemath.org/question/44803/what-is-the-modulus-function-doing/Answer by FrédéricC for <p>I came across this tutorial from Sage that I couldn't get.</p>
<p>Below is the code.</p>
<pre><code>k.<a> = GF(2^1024)
k.modulus()
Output: x^1024 + x^19 + x^6 + x + 1
</code></pre>
<p>What is going on here? </p>
<p>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.</p>
<p>Thanks for the help in advance.</p>
https://ask.sagemath.org/question/44803/what-is-the-modulus-function-doing/?answer=44808#post-id-44808See
k.modulus?Sun, 30 Dec 2018 11:19:42 +0100https://ask.sagemath.org/question/44803/what-is-the-modulus-function-doing/?answer=44808#post-id-44808