Bill Allombert on Fri, 05 Jan 2024 14:48:43 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: binomial coefficient with negative args


On Fri, Jan 05, 2024 at 01:23:54PM +0100, Christian Krause wrote:
> Hello,
> I noticed that binomial(-2,-4) still yields 0 in PARI/GP 2.15.4 although
> Kronenburg's extension was apparently added to src/basemath/bibli2.c. The
> documentation appears not to include the behavior for negative k. Was there
> a decision to keep the old behavior for backward compatibility or why do I
> still get 0 as result?

Hello Christian, 

The change was done to the development branch.
It will be part of the next stable release 2.17.0.
We do not backport interface change to the current stable branch.

Cheers,
Bill