[sympy] Re: Re-sort expression?

2013-09-19 Thread Boris Kheyfets
Yep, it definetly should be [z, log(z)]. And even [z, log(z), q] in my case. It's close, but not quite what I wanted. I think I'll just substitute a number into D. Then sympy handles it smoothly. -- You received this message because you are subscribed to the Google Groups "sympy" group. To

Re: [sympy] Re: Re-sort expression?

2013-09-19 Thread Aaron Meurer
You can also try rcollect (though see https://code.google.com/p/sympy/issues/detail?id=3862; I think that function could be improved). Aaron Meurer On Thu, Sep 19, 2013 at 11:17 AM, Boris Kheyfets wrote: > Yep, it definetly should be [z, log(z)]. And even [z, log(z), q] in my case. > > It's clos

Re: [sympy] Re: Re-sort expression?

2013-09-19 Thread Aaron Meurer
I think it needs to be collect([z, log(z)]). See the documentation. The third argument does something different. Aaron Meurer On Sep 19, 2013, at 11:05 AM, Boris Kheyfets wrote: Thank You for a quick reply. .collect(z) does not quite succeed, since I also have logs. .collect(z, log(z)) didn't

[sympy] Re: Re-sort expression?

2013-09-19 Thread Boris Kheyfets
Thank You for a quick reply. .collect(z) does not quite succeed, since I also have logs. .collect(z, log(z)) didn't do what I expected. Nevertheless I think I'll be happy with collect, subs and coeff -- You received this message because you are subscribed to the Google Groups "sympy" group.