| 1 | initial version |
I have no idea of what you are asking or what you are trying to compute. But if you define a to be the generator of your field then it is very confusing to use a as the loop variable. For example:
sage: F.<a>=GF(16)
sage: 1+3*a
a + 1
sage: 16*a
0
Using a as a loop variable overwrites it:
sage: for a in range(3): print a
0
1
2
sage: a
2
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.