Combinatorics.jl
Combinatorics.jl copied to clipboard
multinomial() may lead to hidden overflow
multinomial internally uses binomial. While the latter check for overflow, the whole computation of multinomial is not checked for overflow, leading to :
multinomial(150, 150, 150, 150) --> error overflow reported by binomial
multinomial(15, 15, 15, 15) --> no error reported
See also this thread on Discourse.