Thanks.  I noticed that expand wasn't expanding denominators  
correctly, but I haven't had the time to look into it.

It looks like expand_mul needs to be fixed too:
 >>> print expand(1/(x*(x + y)), deep=True)
1/(x*(x + y))

Aaron Meurer
On Aug 9, 2009, at 1:25 AM, Luke wrote:

> Attached is a patch that allows expand to handle negative integer
> powers.  This effectively allows expressions like:
> expr = (x+y)**(-2)
> to be expanded by calling
> expr.expand()
>
> ~Luke
>
> >
> <0001-Implemented-code-to-expand-negative-integer-powers.patch>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy-patches" group.
To post to this group, send email to sympy-patches@googlegroups.com
To unsubscribe from this group, send email to 
sympy-patches+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sympy-patches?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to