Publisher review:Combin.C - Compute combinations without overflow The def of this function isC(n,m) = n! / (m! * (n-m)!).Computing this formula can cause overflow for large values of n, even when C(n,m) would be defined.The first version will not overflow if C(n,m) * (n-m 1) < ULONG_MAX. The second version will not overflow if C(n,m) < ULONG_MAX, but is more complex.Function domain: n >= 0, 0
Combin.C is a C/C++ script for Snippets scripts design by Bob Stout.
It runs on following operating system: Windows / Linux / BSD / Solaris.
Operating system:Windows / Linux / BSD / Solaris