in reply to Calculate propabilities without recursion? Coin toss.
update: However that is probably not solving your issue with -1.#IND, which indicates that your numbers are getting too big; others propose to addmy $res = 1; for(my $i = 2; $i <= $_[0]; $i++) { $res *= $i; } return $res;
to the beginning of your script...use bignum;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Calculate propabilities without recursion? Coin toss.
by Microcebus (Beadle) on Mar 16, 2011 at 13:11 UTC | |
by happy.barney (Friar) on Mar 16, 2011 at 14:50 UTC | |
by ikegami (Patriarch) on Mar 16, 2011 at 14:49 UTC | |
by SuicideJunkie (Vicar) on Mar 16, 2011 at 17:49 UTC | |
|
Re^2: Calculate propabilities without recursion? Coin toss.
by Anonymous Monk on Mar 17, 2011 at 15:01 UTC |