in reply to Calculate propabilities without recursion? Coin toss.
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calculate propabilities without recursion? Coin toss.
by Microcebus (Beadle) on Mar 16, 2011 at 13:32 UTC | |
by roboticus (Chancellor) on Mar 16, 2011 at 19:03 UTC | |
by Microcebus (Beadle) on Mar 17, 2011 at 08:31 UTC |