-
-
Notifications
You must be signed in to change notification settings - Fork 702
Closed
Description
sage: zC=(CC(-1)^(1/3))^2
sage: Ka.<aa>=CyclotomicField(3,embedding=zC)
sage: Kb.<bb>=CyclotomicField(3,embedding=zC^2)
sage: Kc.<cc>=CyclotomicField(3,embedding=CC(17))
sage: CC(aa)
-0.500000000000000 + 0.866025403784439*I
sage: CC(bb)
-0.500000000000000 - 0.866025403784439*I
sage: CC(Ka(bb))
-0.500000000000000 + 0.866025403784439*I
It's better to disallow coercions between these then allow this nonsense
sage: CC(aa+bb)
-1.00000000000000 + 1.73205080756888*I
sage: CC(bb+aa)
-1.00000000000000 - 1.73205080756888*I
apply trac-13765-cyclo-embeddings.patch
CC: @nbruin
Component: number fields
Author: Robert Bradshaw
Reviewer: Frédéric Chapoton, Stephan Ehlen
Merged: sage-5.7.beta2
Issue created by migration from https://trac.sagemath.org/ticket/13765