#13041: Cannot convert elements of cyclotomic fields to algebraic numbers
---------------------------+------------------------------------------------
       Reporter:  rbeezer  |         Owner:  AlexGhitza
           Type:  defect   |        Status:  new       
       Priority:  minor    |     Milestone:  sage-5.1  
      Component:  algebra  |    Resolution:            
       Keywords:  sd40.5   |   Work issues:            
Report Upstream:  N/A      |     Reviewers:            
        Authors:           |     Merged in:            
   Dependencies:           |      Stopgaps:            
---------------------------+------------------------------------------------

Comment (by arminstraub):

 Unfortunately, at the moment, elements of number fields don't
 coerce/convert to the algebraic closure QQbar.  This is an instance of
 #12715 (Number field embeddings should go via AA and QQbar).

 Note that you can coerce elements to numerical complex numbers though:
 {{{
 sage: C.<z> = CyclotomicField(7)
 sage: CC(z)
 0.623489801858734 + 0.781831482468030*I
 sage: QQbar(z)
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)
 <your snip>
 TypeError: Illegal initializer for algebraic number
 }}}

 I would therefore suggest to mark this ticket as a duplicate.  (I don't
 immediately see a way to do that myself, so please let me know if I could
 and should have done so myself.)

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13041#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to