Closed hanani8 closed 2 years ago
That's correct, but that's something that should probably be supported! Hm, how would you expect this to work with something like kalker? Simple function? Special syntax? Both? I don't have much experience with these.
I realized this as I was using kalker in my school test.
Wow haha, nice!
I think a simple function is a way to go... Ex: perm(n, r) equivalent to nPr comb(n, r) equivalent to nCr
Simple implementation:
nCr(n, k) = n! / (k! * (n-k)!)
nPr(n, k) = n! / (n - k)!
binompdf(k, n, p) = nCr(n, k) * p^k * (1-p)^(n-k)
binomcdf(k, N, p) = sum(0, k, binompdf(n, N, p))
Forgive me if I am missing it, but it seems like we do not have support permutations and combinations calculation, correct? Can someone confirm this?
I realized this as I was using kalker in my school test. :)