A Monte Carlo calculator for pi. Generates random coordinates in quadrants I and II and sees if they fall within 1 unit of (0, 0).
The amount that fall within 1 unit are counted in a parallelized for
loop, and pi is calculated with hits / throws
.
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
egelja/RandCircleAreaCalculator
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A Monte Carlo calculator for pi. I think I wrote this when I was 12.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published