View Single Post
  #9  
Old 11-22-2004, 01:35 PM
gaming_mouse gaming_mouse is offline
Senior Member
 
Join Date: Oct 2004
Location: my hero is sfer
Posts: 2,480
Default Re: Seeing the same flop

Here's the code, for anyone intersted:

<font class="small">Code:</font><hr /><pre>

public class Test {

public static void main(String[] args) {
double f = 22100;
double ans =2;
double lastTerm = (f-1D)/f;

while (true) {
lastTerm *= (f-ans)/f;
if ( (1-lastTerm) &gt; .5)
break;
ans++;
}

System.out.println(ans);
}
}
</pre><hr />
Reply With Quote