On 19 May 2015 at 10:48, Simon King <simon.k...@uni-jena.de> wrote: > Hi John, > > On 2015-05-19, John Cremona <john.crem...@gmail.com> wrote: >> -- assuming that the generators have the same minimal polynomial of >> course! what about the general case? > > We are talking here about default conversion. I guess > K1.hom([K2.gen()]) (mapping generator to generator) is the only > reasonable default. And We can check (and probably do check already) > whether mapping generator to generator really extends to a homomorphism > of field extensions.
OK. By "general case" I meant where the two fields had generators with different minimal polynomials, where one has to do a little work to find a suitable image for the generator: sage: F3 = GF(3) sage: R.<x> = F3[] sage: F9a.<a> = GF(9,'a',x^2+1) sage: F9b.<b> = GF(9,'b',x^2+x-1) sage: f = F9a.hom([F9a.gen().minpoly().roots(F9b)[0][0]]); f Ring morphism: From: Finite Field in a of size 3^2 To: Finite Field in b of size 3^2 Defn: a |--> 2*b + 1 sage: f(a) 2*b + 1 sage: [f(s) for s in F9a] [0, 2*b, 2*b + 1, b + 1, 2, b, b + 2, 2*b + 2, 1] > > Best regards, > Simon > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.