[sage-support] Re: Polynomial over a finite field using integer coefficients

2009-09-22 Thread Simon King
Hi! On 22 Sep., 20:08, Shing Hing Man wrote: > Thanks for the  reply! > Just one more question. > In general, if k is a finite field, what is k(i), where i is an > integer, suppose to be ? Apart from the autocompletion, another useful way to get information is to look into the documentation. T

[sage-support] Re: Polynomial over a finite field using integer coefficients

2009-09-22 Thread Shing Hing Man
Thanks for the reply! Just one more question. In general, if k is a finite field, what is k(i), where i is an integer, suppose to be ? The following example suggests k(i) will be the elements in the base field as i varies. sage: k. = GF(9) sage: for i in [0..8]: print k(i) : 0 1 2 0 1 2 0

[sage-support] Re: Polynomial over a finite field using integer coefficients

2009-09-22 Thread Simon King
Hi Shing! Two possibilities: sage: k. = GF(9) sage: t=a^2+1 Now, you can learn about all possible methods for elements of k by doing sage: t. (you type t, dot, and hit the tab key). This will show you a list of possible methods. One of the methods is called int_repr: sage: t.int_repr()