#14984: Cannot plot functions that use mpmath if complex numbers occur in the 
image
----------------------------+-----------------------------
    Reporter:  eviatarbach  |            Owner:
        Type:  defect       |           Status:  new
    Priority:  major        |        Milestone:  sage-5.12
   Component:  coercion     |         Keywords:
   Merged in:               |          Authors:
   Reviewers:               |  Report Upstream:  N/A
 Work issues:               |           Branch:
Dependencies:               |         Stopgaps:
----------------------------+-----------------------------
 Currently, trying to plot a function which uses mpmath and returns a
 complex number in the plotting domain will return an error. For example,

 {{{
 sage: from sage.libs.mpmath import utils
 sage: import mpmath
 sage: class Test(BuiltinFunction):
 ....:     def __init__(self):
 ....:         BuiltinFunction.__init__(self, name='test', nargs=1)
 ....:     def _evalf_(self, x, parent):
 ....:         return utils.call(mpmath.log, x, parent=parent)
 ....:
 sage: test = Test()
 sage: plot(test, x, -1, 1)
 AttributeError: type object 'float' has no attribute 'complex_field'
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/14984>
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