You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enhancement has to be done on the sage side since both mpir and pari don't give the correct answer. Using the gamma function in these special cases will also take care of complex numbers.
But, we must avoid changing the whole implementation to the gamma function - that was also giving incorrect results and was fixed in #12448. The sage.rings.arith.binomial function itself is a bit of a mess and it is hard to figure out what will eventually get executed in that code.
Essentially, this stuff
What I would have expected it to give as output is
This enhancement has to be done on the sage side since both mpir and pari don't give the correct answer. Using the gamma function in these special cases will also take care of complex numbers.
But, we must avoid changing the whole implementation to the gamma function - that was also giving incorrect results and was fixed in #12448. The
sage.rings.arith.binomial
function itself is a bit of a mess and it is hard to figure out what will eventually get executed in that code.Component: basic arithmetic
Keywords: binomial
Issue created by migration from https://trac.sagemath.org/ticket/14897
The text was updated successfully, but these errors were encountered: