Comment #5 on issue 588 by asmeurer: simplify should be better at detecting
repeated factors
http://code.google.com/p/sympy/issues/detail?id=588
This is fixed in the new polys, but it needs to be tested:
In [1]: e = integrate(x**2 * exp(x) * cos(x), x)
In [2]: e
Out[2]:
x 2 x x 2 x
ℯ ⋅sin(x) x ⋅ℯ ⋅sin(x) x cos(x)⋅ℯ x ⋅cos(x)⋅ℯ
───────── + ──────────── - x⋅ℯ ⋅sin(x) - ───────── + ────────────
2 2 2 2
In [3]: factor(e)
Out[3]:
x
-(1 - x)⋅(-sin(x) + x⋅cos(x) + x⋅sin(x) + cos(x))⋅ℯ
────────────────────────────────────────────────────
2
I actually don't see any tests for factoring advanced expressions like this.
--
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 [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.