Ask Your Question
1

Substituting a complex embedding for a number field element

asked 2017-12-08 06:34:33 +0100

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
3

answered 2017-12-08 08:36:37 +0100

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)
6.19615242270663
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

Stats

Asked: 2017-12-08 06:34:33 +0100

Seen: 393 times

Last updated: Dec 08 '17