What is Nostr?
David Colarusso /
npub1nhd…7f2w
2024-03-14 12:58:03

David Colarusso on Nostr: Happy #PiDay! Here's a program I wrote for fun that estimate Pi (π) using the Monte ...

Happy #PiDay! Here's a program I wrote for fun that estimate Pi (π) using the Monte Carlo method https://scratch.mit.edu/projects/864097596/

Named for Monte Carlo's games of chance, Monte Carlo methods use "random" events to discover numeric answers. We place dots randomly in a square enclosing a circle, then use the areas of the circle & square to estimate Pi (i.e., π = 4*(area of the circle)/(area of the square)).

Author Public Key
npub1nhde4ayyw0ekwmpyh3vqd77v9y37955q96dmj8g5ux7m89vec78qfp7f2w