Ask Your Question
1

Define different embedding of a number field

asked 2016-02-10 02:21:24 +0100

Dianbin Bao gravatar image

updated 2016-02-10 04:08:50 +0100

kcrisman gravatar image

Hi,

Let f(x) be an irreducible polynomial over $ZZ[x]$. We can define a number field

K.<a>= NumberField(f(x))

My question is how does one define all the embedding of K into the real or complex in Sage?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-02-10 14:53:11 +0100

tmonteil gravatar image

You can have a lool at the embeddings method:

sage: K.embeddings?

Then you can gel all embeddings into the (complex) algebraic field QQbar of the real algrbraic field AA.

sage: K.<a>= NumberField(x^2-2)
sage: K
Number Field in a with defining polynomial x^2 - 2
sage: K.embeddings(QQbar)
[
Ring morphism:
  From: Number Field in a with defining polynomial x^2 - 2
  To:   Algebraic Field
  Defn: a |--> -1.414213562373095?,
Ring morphism:
  From: Number Field in a with defining polynomial x^2 - 2
  To:   Algebraic Field
  Defn: a |--> 1.414213562373095?
]
sage: K.embeddings(AA)
[
Ring morphism:
  From: Number Field in a with defining polynomial x^2 - 2
  To:   Algebraic Real Field
  Defn: a |--> -1.414213562373095?,
Ring morphism:
  From: Number Field in a with defining polynomial x^2 - 2
  To:   Algebraic Real Field
  Defn: a |--> 1.414213562373095?
]

Or,

sage: K.<a>= NumberField(x^2+1)
sage: K.embeddings(QQbar)
[
Ring morphism:
  From: Number Field in a with defining polynomial x^2 + 1
  To:   Algebraic Field
  Defn: a |--> -1*I,
Ring morphism:
  From: Number Field in a with defining polynomial x^2 + 1
  To:   Algebraic Field
  Defn: a |--> 1*I
]
sage: K.embeddings(AA)
[]
edit flag offensive delete link more

Comments

This is exactly what I want. Thank you very much, Tmonteil!

Dianbin Bao gravatar imageDianbin Bao ( 2016-02-11 16:43:57 +0100 )edit

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2016-02-10 02:21:24 +0100

Seen: 438 times

Last updated: Feb 10 '16