diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-12-24 14:20:16 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-12-24 14:20:16 -0500 |
| commit | 9e0017e86ed28ccc2f855807f387a1e451260d85 (patch) | |
| tree | 7fe1b0b931dc82777d8b471e95147eb1edfda184 /stdlib/integers.h | |
| parent | f4b105456ad5f0949800d19acdb3403de26d7678 (diff) | |
Add Int:factorial() and n:choose(k)
Diffstat (limited to 'stdlib/integers.h')
| -rw-r--r-- | stdlib/integers.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
