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)).
{
"id":"5aeb42e5c32d8697369a0051592a52b3ba53ab97d8066b0784b56f4609ecb338",
"pubkey":"9ddb9af48473f3676c24bc5806fbcc2923e2d2802e9bb91d14e1bdb39599c78e",
"created_at":1710421083,
"kind":1,
"tags": [
[
"t",
"piday"
],
[
"proxy",
"https://mastodon.social/users/Colarusso/statuses/112094156128398017",
"activitypub"
]
],
"content":"Happy #PiDay! Here's a program I wrote for fun that estimate Pi (π) using the Monte Carlo method https://scratch.mit.edu/projects/864097596/\n\nNamed 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 \u0026 square to estimate Pi (i.e., π = 4*(area of the circle)/(area of the square)).\n\nhttps://files.mastodon.social/media_attachments/files/112/094/147/645/623/267/original/41b0d81c36b264dd.mp4",
"sig":"1066192c5f99711f5e92b1b467d89a93b15d9c09093e47851beebc3ee9a45cf7a815e4db980b050f365b5dc6ddf05f9566151f1fa98e1f5242178a2eba6cca43"
}