From 9e0017e86ed28ccc2f855807f387a1e451260d85 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 24 Dec 2024 14:20:16 -0500 Subject: Add Int:factorial() and n:choose(k) --- stdlib/integers.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stdlib/integers.h') diff --git a/stdlib/integers.h b/stdlib/integers.h index 2f6b5125..033a6873 100644 --- a/stdlib/integers.h +++ b/stdlib/integers.h @@ -144,6 +144,8 @@ Int_t Int$slow_negated(Int_t x); bool Int$is_prime(Int_t x, Int_t reps); Int_t Int$next_prime(Int_t x); Int_t Int$prev_prime(Int_t x); +Int_t Int$choose(Int_t n, Int_t k); +Int_t Int$factorial(Int_t n); extern const TypeInfo_t Int$info; -- cgit v1.2.3