#5400: conversion error
------------------------------------+---------------------------------------
Reporter: jason | Owner: robertwb
Type: defect | Status: new
Priority: major | Milestone: sage-4.3.1
Component: misc | Keywords:
Work_issues: Close/mark as fixed? | Author:
Upstream: N/A | Reviewer:
Merged: |
------------------------------------+---------------------------------------
Comment(by robertwb):
I hate the fact that
{{{
sage: RR(CC(-1))
-1.00000000000000
}}}
but
{{{
sage: RDF(CDF(-1))
------------------------------------------------------------
Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File "parent.pyx", line 538, in sage.structure.parent.Parent.__call__
(sage/structure/parent.c:5007)
File "coerce_maps.pyx", line 82, in
sage.structure.coerce_maps.DefaultConvertMap_unique._call_
(sage/structure/coerce_maps.c:3109)
File "coerce_maps.pyx", line 77, in sage.structure.coerce_maps._call_
(sage/structure/coerce_maps.c:3000)
File "real_double.pyx", line 540, in
sage.rings.real_double.RealDoubleElement.__init__
(sage/rings/real_double.c:5553)
File "complex_double.pyx", line 808, in
sage.rings.complex_double.ComplexDoubleElement.__float__
(sage/rings/complex_double.c:6628)
TypeError: can't convert complex to float; use abs(z)
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5400#comment:12>
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.