Comment #25 on issue 2624 by [email protected]: Sympy 0.7.1 can't integrate
Gaussians
http://code.google.com/p/sympy/issues/detail?id=2624
Somehow this seems to have been lost:
Thanks for the tip. Factor_terms has the unfortunate effect of turning
things like a/2 + 1 into (a+2)/2 - first off I don't actually find this
simpler, but moreover how do you even enter (a+2)/2 without it
autoexpanding to a/2 + 1?
On 05.02.2012 09:24, [email protected] wrote:
Comment #22 on issue 2624 by smichr: Sympy 0.7.1 can't integrate Gaussians
http://code.google.com/p/sympy/issues/detail?id=2624
factor_terms was written for such purposes as this; to give a
non-destructive simplification of exressions. In fact, it works in this
case:
factor_terms(integrate(exp(-x**2 + 2*x - 1), (x, -oo, oo)))
sqrt(pi)
I would suggest using that at the end of the integrate routine.
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
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-issues?hl=en.