Skip to content

QQbar should have a coercion from number fields with embedding #5355

@sagetrac-cwitty

Description

@sagetrac-cwitty

If a number field comes with an embedding into the complex numbers, QQbar should allow coercions (or at least conversions) from that number field.
For example:

sage: K.<a> = NumberField(x^3 - x + 1, embedding=-1.32)
sage: QQbar.coerce_map_from(K)
Ring morphism:
  From: Number Field in a with defining polynomial x^3 - x + 1
  To:   Algebraic Field
  Defn: a |--> -1.324717957244746?

Currently, this map can already be created using K.hom([QQbar(a)]) (see #13041).

Component: coercion

Keywords: qqbar

Issue created by migration from https://trac.sagemath.org/ticket/5355

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions