We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 422868d commit e2c1137Copy full SHA for e2c1137
1 file changed
Math.ark
@@ -766,7 +766,7 @@
766
# @details Evaluates to n! / (k! * (n - k)!) when k <= n and evaluates to zero when k > n.
767
# @param _n total number of items
768
# @param _k number of items that will be picked
769
-# @author https://github.com/SuperFola
+# @author https://github.com/SuperFola, https://github.com/kg583
770
(let binomialCoeff (fun (_n _k)
771
(if (<= _k _n)
772
(/ (permutations _n _k) (factorial _k))
@@ -776,7 +776,7 @@
776
# @details Evaluates to n! / (n - k)! when k <= n and evaluates to zero when k > n.
777
778
# @param _k number of items to pick
779
780
(let permutations (fun ((mut _n) _k)
781
782
{
0 commit comments