On Aug 9, 12:48 pm, "Aaron S. Meurer" <asmeu...@gmail.com> wrote:
> I wonder if 1/(x + y)**2 should be expanded without the deep option.  
> The same for 1/(x*(x + y)) and expand_mul(1/(x*(x + y))**2).

I think it should, this is what Mathematica does.  It seems to me that
you wouldn't call expand unless this was what you wanted.  In effect,
this would cause things on the denomiator (e.g. Pow's with a negative
integer exponent) to be treated just as equally as things with a
positive integer exponent (things on the numerator).  It seems to me
this is the right thing to do, but perhaps you could provide examples
of when this wouldn't be desired?

~Luke
>
> Aaron
> On Aug 9, 2009, at 1:16 PM, Ondrej Certik wrote:
>
>
>
> > On Sun, Aug 9, 2009 at 11:42 AM, Aaron S. Meurer<asmeu...@gmail.com>  
> > wrote:
>
> >> 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))
>
> > Yeah, we just discovered that too.
>
> > Ondrej
>
>
--~--~---------~--~----~------------~-------~--~----~
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