Updates:
        Cc: basti.kr

Comment #1 on issue 1851 by asmeurer: Integral((-60*exp(x) - 19.2*exp(4*x))*exp(4*x), x).doit() failure
http://code.google.com/p/sympy/issues/detail?id=1851

The problem is with substitution.  Here is what is happening:

In [12]: ((-60*exp(x) - 19.2*exp(4*x))*exp(4*x)).subs(S("{exp(x): _x0, x: _x1, exp(4*x): _x2}"))
Out[12]:
    ⎛               4 ⎽⎽⎽⎽⎽⎞
_x2⋅⎝-19.2⋅_x2 - 60⋅╲╱ _x2 ⎠

But we want exp(x) to be replaced with _x0 and exp(4*x) to be replaced with _x2, so that the resulting expression can be made into a Poly. So we need atomic substitution to make it work.

--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to sympy-iss...@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