[sympy] Re: Getting a series expansion hangs Sympy

2009-03-26 Thread Andrew Docherty
Hi Vinzent, I had guessed that was probably the case, I should have done the obvious and run the tests before and after my patch. I think I was tired. However, I'm glad to see you're giving it a more descriptive name! Andrew On Mar 26, 1:27 am, Vinzent Steinberg

[sympy] Re: Getting a series expansion hangs Sympy

2009-03-23 Thread Andrew
Hi Ondrej, I burrowed into the source code and the problem seems to be caused by the pattern matching in the `sympy/core/power.py` file. It expects a term of the form k*x**l, but if there are two terms of the same power in x it won't match. This gives l=0 and the following while loop doesn't

[sympy] Re: Getting a series expansion hangs Sympy

2009-03-23 Thread Ondrej Certik
On Mon, Mar 23, 2009 at 6:28 PM, Andrew doche...@gmail.com wrote: Hi Ondrej, I burrowed into the source code and the problem seems to be caused by the pattern matching in the `sympy/core/power.py` file. It expects a term of the form k*x**l, but if there are two terms of the same power in