I need to compute the value of binomial(n, k)=n!/k!(n-k)! * (1-p)^n *
p^k.
When n and k is very big (e.g. n 160), the step to compute n!/k!(n-
k)! is always overflow even when I used unsigned long long.
Can anyone help me?
Thank you
Gracia
p^k.
When n and k is very big (e.g. n 160), the step to compute n!/k!(n-
k)! is always overflow even when I used unsigned long long.
Can anyone help me?
Thank you
Gracia
Comment