Comment #6 on issue 2820 by [email protected]: expand() doesn't work in the denominator
http://code.google.com/p/sympy/issues/detail?id=2820
It has traversed the tree deeply. But how it parses up terms is the issue -- and a known issue for other expansions, like power_base and power_exp. Since integer powers auto-distribute Pow._eval_expand_mul never gets its hands on b*(1 + b) in an expression like 1/b/(1 + b) since this is parsed as 1/b and 1/(1 + b), not (b*(1 + b))**(-1). So you have to do this with a hint: frac=True. Perhaps a more limited context could be used: if there is no Add in the numerator's factors, then just expand the denominator in place. What do you think about that?
-- 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.
