Ask Your Question

Substituting a complex embedding for a number field element

asked 2017-12-07 23:34:33 -0600

jaebond gravatar image

Is there a way to take an element of a number field (or a polynomial or a number field) and replace the generator of the field by one of its complex embeddings? For example, something like

sage: K.<a> = NumberField(x^2 - 3)
sage: (3*a + 5).substitute(a=a.complex_embeddings()[1])

It's feasible to do this with sage_eval, but hopefully there is a better way.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2017-12-08 01:36:37 -0600

FrédéricC gravatar image

Like that

sage: K.<a> = NumberField(x^2 - 3)
sage: z=K.complex_embeddings()[1]
sage: z(3*a+1)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-12-07 23:34:33 -0600

Seen: 17 times

Last updated: Dec 08