#6899: weird bug taking float of real part of a symbolic
----------------------+-----------------------------------------------------
Reporter: was | Owner: burcin
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: calculus | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Here's a simple example:
{{{
sage: a = real((-I*float(1))^2); a
-1.00000000000000
sage: float(a)
Traceback (most recent call last):
...
TypeError: can't convert complex to float; use abs(z)
sage: b = a.simplify(); b
-1.0
sage: float(b)
-1.0
}}}
Dylan Thurston reported this on sage-support, but in a more complicated
situation involving plotting.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6899>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---