bad binomial sum

7 views
Skip to first unread message

Harald Schilly

unread,
Jan 10, 2010, 12:15:25 PM1/10/10
to sage-...@googlegroups.com
Hi, I got this from the report a problem link:

Typing (in the inotebook)

var('t,k,i')
sum(binomial(i+t,t),i,0,k)

results in

binomial(k + t + 1, t + 1) - 1

which is false, the well-known answer is binomial(k + t + 1, t + 1)

andrejv

unread,
Jan 11, 2010, 11:08:52 AM1/11/10
to sage-devel

There is a fix for this bug in maxima cvs. If you don't want to wait
for the next release I can provide a patch.

Andrej

Burcin Erocal

unread,
Jan 16, 2010, 1:11:37 PM1/16/10
to sage-...@googlegroups.com
Hi Andrej,

Do you know when the next release will be?

If it will be more than 2 - 3 weeks, then we should patch our maxima
package in the next Sage release (4.3.2).


I opened a ticket for this:

http://trac.sagemath.org/sage_trac/ticket/7952


Thank you.

Burcin

andrejv

unread,
Jan 17, 2010, 2:21:14 AM1/17/10
to sage-devel
> andrejv <andrej.vodopi...@gmail.com> wrote:
> > On Jan 10, 6:15 pm, Harald Schilly <harald.schi...@gmail.com> wrote:
> > > Hi, I got this from the report a problem link:
>
> > > Typing (in the inotebook)
>
> > > var('t,k,i')
> > > sum(binomial(i+t,t),i,0,k)
>
> > > results in
>
> > > binomial(k + t + 1, t + 1) - 1
>
> > > which is false, the well-known answer is binomial(k + t + 1, t + 1)
>
> > There is a fix for this bug in maxima cvs. If you don't want to wait
> > for the next release I can provide a patch.
>
> Do you know when the next release will be?
>
> If it will be more than 2 - 3 weeks, then we should patch our maxima
> package in the next Sage release (4.3.2).
>
> I opened a ticket for this:
>
> http://trac.sagemath.org/sage_trac/ticket/7952

The next Maxima release will be sometime in April I think. The patch
is very simple:

http://maxima.cvs.sourceforge.net/viewvc/maxima/maxima/src/combin.lisp?r1=1.39&r2=1.40&view=patch

Andrej

Reply all
Reply to author
Forward
0 new messages