The method then consists in drawing at random numbers x and y in the interval [0,1]; if x2 + y2 <1 the point M (x, y) belongs to the quarter disc of radius 1. and is drawn in blue, otherwise it is colored red. The probability of obtaining a blue dot is equal to the ratio of the areas of the quarter disc of radius 1 and the square of side 1. It is therefore π / 4.
-
Notifications
You must be signed in to change notification settings - Fork 0
simonherlin/monte_carlo_PI
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published