#6905: real(0.0r) is broken
-----------------------+----------------------------------------------------
Reporter: nthiery | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-4.1.2
Component: symbolics | Keywords: real, symbolic, plot
Reviewer: | Author:
Merged: |
-----------------------+----------------------------------------------------
Implement:
sage: real(0.0r)
Note: imag(0.0r) seems to readily work (using Maxima if I read it well)!
Found after getting the following bug report from Francois Maltey:
sage: parametric_plot ((real(exp(i*a)),imag(exp(i*a))),(a,-5,5))
Raises the following warning:
verbose 0 (2999: plot.py, generate_plot_points) WARNING: When
plotting, failed to evaluate function at 200 points.
verbose 0 (2999: plot.py, generate_plot_points) Last error
message: ''float' object is not callable'
and yield an empty plot. Investing this further, I got that
sage: var('a'); f = fast_float(real(exp(i*a)),a)
Yields a non callable object. Finally Mike H traced it back on IRC to
real(0.0r) being broken, because 0.0r.real is an attribute, not a
method.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6905>
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
-~----------~----~----~----~------~----~------~--~---