Hi,

I found an integral that sometimes fails, sometime succeeds depending on 
the variable name. See the session below.

How can I avoid such unexpected behavior?

This is with SymPy 0.7.1 on windows.

Thanks in advance.

IPython console for SymPy 0.7.1 (Python 2.7.2-32-bit) (ground types: python)

These commands were executed:
>>> from __future__ import division
>>> from sympy import *
>>> x, y, z, t = symbols('x y z t')
>>> k, m, n = symbols('k m n', integer=True)
>>> f, g, h = symbols('f g h', cls=Function)

Documentation can be found at http://www.sympy.org

In [1]: x,a=symbols('x a')

In [2]: integrate(exp(-(a**2+a)/2),(a,-oo,oo))
Out[2]:
 oo
  /
 |
 |      2
 |     a    a
 |   - -- - -
 |     2    2
 |  e         da
 |
/
-oo

In [3]: integrate(exp(-(x**2+x)/2),(x,-oo,oo))
Out[3]:
  ___   ____  1/8
\/ 2 *\/ pi *e

In [4]:

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sympy/-/YNstfGtJjAkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to