Files
2025-02-Numerical/lib/nr/ansi/recipes/bico.c
2025-09-12 18:55:25 +09:00

10 lines
129 B
C

#include <math.h>
float bico(int n, int k)
{
float factln(int n);
return floor(0.5+exp(factln(n)-factln(k)-factln(n-k)));
}