Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sage does not try to automatically put elements in the smallest subfield that they belong to. You need to do that explicitly. You can use something like the line g = P(f) below which converts an element f from GF(103^2) to an element g of GF(103) :

sage: R.<a> = GF(103^2)
sage: P.<b> = GF(103)
sage: sage: f = R(99); f
sage: f.parent()
Finite Field in a of size 103^2
sage: g = P(f); g
sage: g.parent()
Finite Field of size 103