#5400: conversion error
--------------------+-------------------------------------------------------
 Reporter:  jason   |         Owner:  robertwb  
     Type:  defect  |        Status:  closed    
 Priority:  major   |     Milestone:  sage-4.4.2
Component:  misc    |    Resolution:  fixed     
 Keywords:          |        Author:            
 Upstream:  N/A     |      Reviewer:            
   Merged:          |   Work_issues:            
--------------------+-------------------------------------------------------
Changes (by mvngu):

  * status:  new => closed
  * resolution:  => fixed
  * work_issues:  Close/mark as fixed? =>


Comment:

 Close as fixed:

 {{{
 [mv...@sage ~]$ sage
 ----------------------------------------------------------------------
 | Sage Version 4.4.1, Release Date: 2010-05-02                       |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 sage: RR(CC(-1))
 -1.00000000000000
 sage: RDF(CDF(-1))
 ---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call
 last)

 /home/mvngu/<ipython console> in <module>()

 /usr/local/sage/local/lib/python2.6/site-packages/sage/structure/parent.so
 in sage.structure.parent.Parent.__call__ (sage/structure/parent.c:6332)()

 /usr/local/sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3108)()

 /usr/local/sage/local/lib/python2.6/site-
 packages/sage/structure/coerce_maps.so in
 sage.structure.coerce_maps.DefaultConvertMap_unique._call_
 (sage/structure/coerce_maps.c:3010)()

 /usr/local/sage/local/lib/python2.6/site-
 packages/sage/rings/real_double.so in
 sage.rings.real_double.RealDoubleElement.__init__
 (sage/rings/real_double.c:5541)()

 /usr/local/sage/local/lib/python2.6/site-
 packages/sage/rings/complex_double.so in
 sage.rings.complex_double.ComplexDoubleElement.__float__
 (sage/rings/complex_double.c:6510)()

 TypeError: can't convert complex to float; use abs(z)
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5400#comment:16>
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