Comment #6 on issue 588 by smichr: simplify should be better at detecting repeated factors
http://code.google.com/p/sympy/issues/detail?id=588
If you are just pulling out a visible term (not a hidden factor) then consider using
terms_gcd:
terms_gcd(ans)
(-cos(x) + x**2*cos(x) + x**2*sin(x) - 2*x*sin(x) + sin(x))*exp(x)/2 -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings -- 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.