I'd suggest computing the binomial expansion directly without factorials, as the factorials can get rather slow. I recently did so (with repellent's help in Re^5: Monte Carlo - Coin Toss in James_H's thread Monte Carlo - Coin Toss. Let me know if you have any trouble with it.
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: Calculate propabilities without recursion? Coin toss.
by roboticus
in thread Calculate propabilities without recursion? Coin toss.
by Microcebus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |