Status: Valid
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3315 by unlimite...@gmail.com: In meijerint_definite, the result depends on the order of points in innermost
http://code.google.com/p/sympy/issues/detail?id=3315

The problem occurs around sympy/integrals/meijerint.py:1631, in meijerint_definite. Depending on how the elements appear in innermost, the result of integration may be either very simple or very complex, but simplifiable to the simple result.

For an example refer to the sympy/integrals/tests/test_meijerint.py:322, in test_probability:

integrate(x*normal(x, mu1, sigma1), (x, -oo, oo), meijerg=True)

For this integral, innermost includes mu1 and 0, and, depending on whether meijerint_definite gets to 0 first or not, the result of the integral is either mu1 or a very complex expression which simplify()'s to mu1.

This is currently worked around by sorting innermost with default_sort_key in reverse order. I have no particular explanation why it is the reverse order that works better.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-issues@googlegroups.com.
To unsubscribe from this group, send email to 
sympy-issues+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to