[sympy] summation in sympy

2012-04-24 Thread Kjetil brinchmann Halvorsen
I found the usefull summation function, which seems to work well (examples from todays version from git) In [30]: summation(1/k**2,(k,1,oo)) Out[30]: 2 π ── 6 In [31]: summation( (-1)**k * binomial(n,k), (k,0,n)) Out[31]: 0 But: In [32]: summation( binomial(n,k), (k,0,n)) Out[32]: n ╲

Re: [sympy] summation in sympy

2012-04-24 Thread Aaron Meurer
On Tue, Apr 24, 2012 at 5:07 PM, Kjetil brinchmann Halvorsen wrote: > I found the usefull summation function, which seems to work well > (examples from todays version from git) > > In [30]: summation(1/k**2,(k,1,oo)) > Out[30]: >  2 > π > ── > 6 > > In [31]: summation( (-1)**k * binomial(n,k), (k,

Re: [sympy] summation in sympy

2012-04-24 Thread Tom Bachmann
I agree. Can you open an issue for this in our issue tracker (http://code.google.com/p/sympy/issues/list)? We can do hypergeometric series, which is why the summation() function is so powerful in the git master, but I think it's not recognizing this one as such because it's a finite sum (Tom, ple

Re: [sympy] summation in sympy

2012-04-24 Thread Aaron Meurer
On Tue, Apr 24, 2012 at 5:16 PM, Tom Bachmann wrote: >> I agree. Can you open an issue for this in our issue tracker >> (http://code.google.com/p/sympy/issues/list)? >> >> We can do hypergeometric series, which is why the summation() function >> is so powerful in the git master, but I think it's n

Re: [sympy] summation in sympy

2012-04-24 Thread Tom Bachmann
On 25.04.2012 00:20, Aaron Meurer wrote: On Tue, Apr 24, 2012 at 5:16 PM, Tom Bachmann wrote: I agree. Can you open an issue for this in our issue tracker (http://code.google.com/p/sympy/issues/list)? We can do hypergeometric series, which is why the summation() function is so powerful in the

Re: [sympy] summation in sympy

2012-04-24 Thread Aaron Meurer
On Tue, Apr 24, 2012 at 5:36 PM, Tom Bachmann wrote: > On 25.04.2012 00:20, Aaron Meurer wrote: >> >> On Tue, Apr 24, 2012 at 5:16 PM, Tom Bachmann  wrote: I agree. Can you open an issue for this in our issue tracker (http://code.google.com/p/sympy/issues/list)? We can do

Re: [sympy] summation in sympy

2012-04-25 Thread Tom Bachmann
Hello, I submitted a pull request for the problem you observed: https://github.com/sympy/sympy/pull/1261 Once this is in, the particular sum (and some related ones) should work. On 25.04.2012 00:07, Kjetil brinchmann Halvorsen wrote: I found the usefull summation function, which seems to work

Re: [sympy] summation in sympy

2012-04-25 Thread Mateusz Paprocki
Hi, On 25 April 2012 01:36, Tom Bachmann wrote: > On 25.04.2012 00:20, Aaron Meurer wrote: > >> On Tue, Apr 24, 2012 at 5:16 PM, Tom Bachmann wrote: >> >>> I agree. Can you open an issue for this in our issue tracker (http://code.google.com/p/**sympy/issues/list

Re: [sympy] summation in sympy

2012-04-25 Thread Aaron Meurer
Can you open issues for all of these, so that we don't forget about them? Aaron Meurer On Wed, Apr 25, 2012 at 6:08 PM, Kjetil brinchmann Halvorsen wrote: > And here is one example that leads to an internal error: > > In [50]: summation( (-1)**k * binomial(2*n,k)**2, (k,0,oo)) >

Re: [sympy] summation in sympy

2012-04-25 Thread Aaron Meurer
http://code.google.com/p/sympy/issues/ Aaron Meurer On Wed, Apr 25, 2012 at 8:08 PM, Kjetil brinchmann Halvorsen wrote: > I can open issues, if you can tell me where to do so (or where to read about > opening issues?) > > Kjetil > > > On Wed, Apr 25, 2012 at 21:02, Aaron Meurer wrote: >> >> Can

Re: [sympy] summation in sympy

2012-04-26 Thread Tom Bachmann
Here is one more example which do not work in todays's version of sympy: (Example from the book A=B) In [42]: summation( (-1)**(n+r+s)*binomial(n,r)*binomial(n,s)*binomial(n+r,r)*binomial(n+s,s)*binomial(2*n-r-s,n),(r,0,n),(s,0,n)) Out[42]: n n ╲ ╲ ╲ ╲ n +