#14984: Cannot plot functions that use mpmath if complex numbers occur in the 
image
-------------------------------+-----------------------------
       Reporter:  eviatarbach  |         Owner:
           Type:  defect       |        Status:  needs_review
       Priority:  major        |     Milestone:  sage-5.12
      Component:  numerical    |    Resolution:
       Keywords:               |     Merged in:
        Authors:               |     Reviewers:
Report Upstream:  N/A          |   Work issues:
         Branch:               |  Dependencies:
       Stopgaps:               |
-------------------------------+-----------------------------

Comment (by eviatarbach):

 Yes, but I don't think it should work with `parent` as `int` or `Integer`.
 Your solution coerces anything it doesn't know what to do with into
 `complex`, which is probably not what we want it to do. Besides, there
 isn't really any reason it should receive `int` or `Integer` as a parent;
 a symbolic function's `_evalf_` shouldn't ever get passed that.

 With the patch, if `float` is the parent and it gets complex output then
 it coerces to `complex`, which makes sense since it is has the same
 precision and is also a Python builtin type. I think the scope of the
 patch should be to just fix this issue, which affects plotting as noted in
 the description.

--
Ticket URL: <http://trac.sagemath.org/ticket/14984#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to