We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
binomial(n, k)
n < 0
This would be a breaking change either way, but binomial(n, k) with n < 0 should either produce (-1).pow(k) * binomial(k - n - 1, k) = n(n-1)...(n-k +1)/k! or n and k should be unsigned. See eg https://en.wikipedia.org/wiki/Binomial_coefficient#Generalization_and_connection_to_the_binomial_series.
(-1).pow(k) * binomial(k - n - 1, k) = n(n-1)...(n-k +1)/k!
n
k
The text was updated successfully, but these errors were encountered:
No branches or pull requests
This would be a breaking change either way, but
binomial(n, k)
withn < 0
should either produce(-1).pow(k) * binomial(k - n - 1, k) = n(n-1)...(n-k +1)/k!
orn
andk
should be unsigned. See eg https://en.wikipedia.org/wiki/Binomial_coefficient#Generalization_and_connection_to_the_binomial_series.The text was updated successfully, but these errors were encountered: