in reply to Re: Calculate propabilities without recursion? Coin toss.
in thread Calculate propabilities without recursion? Coin toss.

Thanks allot, using bignum works. But makes the whole very very slowly. I want to run this script up to 10000 times with n=up to 5000. This will take weeks... Any suggestions?
  • Comment on Re^2: Calculate propabilities without recursion? Coin toss.

Replies are listed 'Best First'.
Re^3: Calculate propabilities without recursion? Coin toss.
by happy.barney (Friar) on Mar 16, 2011 at 14:50 UTC
Re^3: Calculate propabilities without recursion? Coin toss.
by ikegami (Patriarch) on Mar 16, 2011 at 14:49 UTC
    It wouldn't surprise me if 5000! is larger than the number of atoms in the universe. Would you care to reconsider that?

      In fact, a measly 65! = 8x1090, which is significantly bigger than the number of atoms in the visible universe (1078 to 1082).