
Namma Suvarna Karnataka
Gabriel
Software Surgeon
Originally posted by Gabriel Claramunt:
Studying the Montecarlo method?
If I recall correctly, you need to multiply by 4 if you're using a 1/4 th of a circle to do the calculation ( wich makes things simpler). Anyway, you need to discuss how acurate is your random number generator.
What is your goal?
Namma Suvarna Karnataka
"Perfection is achieved, not when there is nothing more to add, but when there is nothing left to take away."  Antoine de SaintExupery
Namma Suvarna Karnataka
Originally posted by Anand Hariharan:
Trivia:
355/113 is much better estimate than 22/7.
 Anand
"I'm not back."  Bill Harding, Twister
Namma Suvarna Karnataka
Originally posted by Jim Yingst:
As a matter of fact, no it isn't. Was there a typo in there?
Originally posted by Arjunkumar Shastry:
Yes,thats Monte Carlo method.Goal is to find how accurately you generate the value of PI.The larger square you have and more points you select ,more accurate will be the value of PI.
Gabriel
Software Surgeon
"I'm not back."  Bill Harding, Twister
Namma Suvarna Karnataka
"I'm not back."  Bill Harding, Twister
Originally posted by Jim Yingst:
Well, Euler was the one who discovered the Taylor series for the exponential function. I'm not sure who found the Taylor series for sine and cosine,...
Originally posted by Jim Yingst:
[b] It doesn't take that much genius to see that plugging imaginary numbers into Euler's exponential power series gives power series for sine and cosine.
Namma Suvarna Karnataka
MH
Originally posted by Arjun Shastry:
The elegant formula is by Ramanujan:
Math.sqrt(1+ Math.sqrt(1+ 2*Math.sqrt(1+3*Math.sqrt(1+4*Math.sqrt(...... )))))
Now its a time to write recursive function for this.!!!
Gabriel
Software Surgeon
MH
With a little knowledge, a cast iron skillet is nonstick and lasts a lifetime. 