You are viewing a single comment's thread from:

RE: Killing Time With Recreational Math: A Slow Boat to "π-na"

in #steemstem6 years ago

Wow, I love your post!😀

Would be interesting to see the Gaussian distribution of the results.
Would the mean value be very close to pi?

Must be very CPU intensive to calculate the GCD of all these large pairs. I thought there was no mathematical shortcuts to calculate this?

Sort:  

I tried out your suggestion and binned the results of 250 trials. Each trial calculated pi from the comparison of ~1,000,000 random number pairs. This means that the curve below is the result of ~500,000,000 random numbers.

It is starting to look "bell curvish".

Good job! So enough samples would yield quite an accurate value of pi!

Coin Marketplace

STEEM 0.29
TRX 0.12
JST 0.032
BTC 63330.76
ETH 3090.95
USDT 1.00
SBD 3.80