-
-
Notifications
You must be signed in to change notification settings - Fork 654
Closed
Closed
Copy link
Milestone
Description
This is a follow-up on #17830 and #18819.
#17830 made this possible:
sage: x = polygen(ZZ)
sage: K.<cbrt2> = NumberField(x^3 - 2, embedding=AA.polynomial_root(x^3-2, RIF(0,3)))
sage: 6064/4813 < cbrt2 < 90325/71691
True
But if one uses number_field_elements_from_algebraics
, one gets only non-embedded number field elements:
sage: x = polygen(ZZ)
sage: K, cbrt2, hom = number_field_elements_from_algebraics(AA.polynomial_root(x^3-2, RIF(0,3)))
sage: 6064/4813 < cbrt2 < 90325/71691
False # (an perhaps an error in Python 3?)
This ticket adds an option embedded
to create embedded number field elements.
sage: x = polygen(ZZ)
sage: K, cbrt2, hom = number_field_elements_from_algebraics(AA.polynomial_root(x^3-2, RIF(0,3)), embedded=True)
sage: 6064/4813 < cbrt2 < 90325/71691
True
TODECIDE:
CC: @vbraun @gagern @videlec @sagetrac-tmonteil @jjermann @staroste @jplab @mo271 @yuan-zhou @JohnCremona @tscrim
Component: number fields
Keywords: IMA-PolyGeom
Author: Jean-Philippe Labbé
Branch: 9255f2c
Reviewer: Matthias Koeppe, John Cremona
Issue created by migration from https://trac.sagemath.org/ticket/20181