#14723: Error when SymPy can't evaluate an integral
-------------------------------------+-------------------------------------
Reporter: eviatarbach | Owner: burcin
Type: defect | Status: needs_review
Priority: major | Milestone: sage-pending
Component: calculus | Resolution:
Keywords: sympy, integrate | Merged in:
Authors: Eviatar Bach, | Reviewers: Ralf Stephan, Karl-
Ralf Stephan | Dieter Crisman
Report Upstream: Completely fixed; | Work issues: fix in sympy
Fix reported upstream | Commit:
Branch: u/rws/i14723 | dd4f7ffae3eb5a98734430f5c94347d9c785989b
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by kcrisman):
Along these lines, we have
{{{
sage: integrate(integrate(integrate(f,x),y),z)
integrate(integrate(integrate(f(x, y, z), x), y), z)
}}}
but
{{{
sage: var('y z')
(y, z)
sage: f = function('f',x,y,z)
sage: f
f(x, y, z)
sage:
integrate(integrate(integrate(f,x,algorithm='sympy'),y,algorithm='sympy'),z,algorithm='sympy')
---------------------------------------------------------------------------
<snip>
690 return f_sympy(*sympy.sympify(g, evaluate=False))
691 else:
--> 692 raise NotImplementedError("SymPy function '%s' doesn't
exist" % f)
693
694 sympy = SympyConverter()
NotImplementedError: SymPy function 'f' doesn't exist
sage: integrate(integrate(integrate(f,x),y),z)
}}}
Perhaps it would be good to fix that here, or elsewhere?
But I like that
{{{
sage:
integrate(integrate(integrate(abs(x),x,algorithm='sympy'),y,algorithm='sympy'),z,algorithm='sympy')
integrate(y*z*abs(x), x)
sage:
integrate(integrate(integrate(abs(x*y*z),x,algorithm='sympy'),y,algorithm='sympy'),z,algorithm='sympy')
integrate(integrate(integrate(abs(x*y*z), x), y), z)
}}}
so otherwise I think we should be good to go.
--
Ticket URL: <http://trac.sagemath.org/ticket/14723#comment:52>
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.