Ask Your Question

jj's profile - activity

2021-09-06 11:16:01 +0200 received badge  Popular Question (source)
2014-10-20 19:26:28 +0200 commented answer Homomorphisms for relative number fields

Thanks for the updated answer!

2014-09-19 17:25:40 +0200 received badge  Editor (source)
2014-09-19 16:47:07 +0200 commented answer Homomorphisms for relative number fields

Hmm, how can I make it work for non-exact fields like CC? I tried to put a check=False flag everwhere but it still seems to fail. :(

2014-09-19 10:08:46 +0200 commented answer Homomorphisms for relative number fields

Ok, that makes sense. Usually I use polynomial variables as well...

2014-09-18 16:32:50 +0200 received badge  Scholar (source)
2014-09-18 16:32:37 +0200 commented answer Homomorphisms for relative number fields

I get the following error after "lam_im = F_pol.roots(L)[1][0]": TypeError: Algebraic Field is not a valid variable. But with my "lam_im"-way it works. Thanks a lot!

2014-09-18 03:36:11 +0200 asked a question Homomorphisms for relative number fields

How can I define a homomorphism from a relative number field K (containing F) to some other field L if I know where to send K.gens()?

Example:

F_pol  = x^2-x-1
F      = NumberField(F_pol, 'lam')
K_pol  = x^2 + 4
K      = F.extension(K_pol, 'e')
L      = QQbar
lam_im = L(F_pol.roots()[1][0])
e_im   = L(K_pol.roots()[1][0])

Wrong result:

K.hom([e_im], QQbar, check=False)

What we want (not working):

K.hom([e_im, lam_im], QQbar, check=False)

A working solution (edit):

K.Hom(L)(e_im, F.hom([lam_im], check=False))

New question/example: What if L is not exact?

x       = PolynomialRing(QQ,'x').gen()
F_pol   = x^3 - x^2 - 2*x + 1
F.<lam> = NumberField(F_pol, 'lam')
D       = 4*lam^2 + 4*lam - 4
K_pol   = x^2 - D
K       = F.extension(K_pol, 'e')
L       = CC
lam_im  = F_pol.roots(L)[2][0]
e_im    = F.hom([lam_im], check=False)(D).sqrt()

K.Hom(L)(e_im, F.hom([lam_im], check=False), check=False)

This gives the error:

TypeError: images do not define a valid homomorphism