Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #17684: density_plot() is broken with functions involving symbol…
…ic expressions 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)) }}} URL: https://trac.sagemath.org/17684 Reported by: tmonteil Ticket author(s): Dave Morris Reviewer(s): Karl-Dieter Crisman
- Loading branch information