#17684: density_plot() is broken with functions involving symbolic expressions
------------------------+----------------------------
   Reporter:  tmonteil  |            Owner:
       Type:  defect    |           Status:  new
   Priority:  major     |        Milestone:  sage-6.5
  Component:  graphics  |         Keywords:
  Merged in:            |          Authors:
  Reviewers:            |  Report Upstream:  N/A
Work issues:            |           Branch:
     Commit:            |     Dependencies:
   Stopgaps:            |
------------------------+----------------------------
 As reported on [http://ask.sagemath.org/question/25617/density_plot-defed-
 python-function-typeerror/ this ask question], the following does not
 work:

 {{{
 sage: f1(a, b) = 1 - b / a
 sage: f2(a, b) = 1 - a / b
 sage: def f12(a, b):
 ....:         if a - b < 0:
 ....:                 return f1(a, b)
 ....:         else:
 ....:                 return f2(a, b)
 sage: density_plot(f,(1,2),(1,2))
 KeyError: 'text/plain'
 }}}

 While the following works:

 {{{
 sage: f1(a, b) = 1 - b / a
 sage: f2(a, b) = 1 - a / b
 sage: def f12(a, b):
 ....:     if a - b < 0:
 ....:         return RDF(f1(a, b))
 ....:     else:
 ....:         return RDF(f2(a, b))
 sage: density_plot(f12,(1,2),(1,2))
 }}}

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

Reply via email to