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)).
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)).