Updates:
Labels: -NeedsReview -smichr
Comment #11 on issue 2820 by [email protected]: expand() doesn't work in the
denominator
http://code.google.com/p/sympy/issues/detail?id=2820
This should be a new issue. The problem is not denominator expansion, per
se, but the known deficiency of how expand works: the denominator gets
expanded as (x - 2 + 1/x) but when the 1/x term is divided by this that
expand hint is already spent and it doesn't get reapplied. expand_mul, I
believe, has been fixed so it always expands completely; try touch up your
expression with that:
expand_mul(z.expand())
1/(x**2 - 2*x + 1) - 1/(x - 2 + 1/x) - 1/(-x + 1)
Is it worth letting frac work on terms of an Add when deep is True so
z.expand(frac=1)
(-1 + 1/x)/(x - 2 + 1/x) - 1/(-x + 1)
(This still doesn't solve the processing of hints but might be more of what
someone would like.)
--
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.