1 // Binomial coefficient
7 // Output: Binomial coefficient on stack
9 // binomial(n, k) = n! / k! / (n - k)!
11 // The binomial coefficient vanishes for k < 0 or k > n. (A=B, p. 19)
15 static void ybinomial(void);
16 static int check_args(void);
46 if (check_args() == 0) {
70 if (isnum(N
) && lessp(N
, zero
))
72 else if (isnum(K
) && lessp(K
, zero
))
74 else if (isnum(N
) && isnum(K
) && lessp(N
, K
))