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
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
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()