[issue35431] Add a function for computing binomial coefficients to the math module

Yash Aggarwal report at bugs.python.org
Thu Jan 3 10:38:05 EST 2019


Yash Aggarwal <aggarwal.yash2011 at gmail.com> added the comment:

I have written the function in the latest patch to work only for positive n. Although the definition of combination or nChoosek makes no sense for negative n, negative binomial distribution exists and so binomial coefficient is defined for negative value of n. So my question is should the function be expanded to calculate for negative n or is the function expected to work only in combination sense?

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35431>
_______________________________________


More information about the Python-bugs-list mailing list