Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def monte_carlo(n_samples, radius = 1):
if(in_circle(x, y, radius)):
in_circle_count += 1

# Since we've generated points in upper left quadrant ([0,radius], [0, radius])
# Since we've generated points in upper right quadrant ([0,radius], [0, radius])
# We need to multiply the number of points by 4
pi_estimate = 4 * in_circle_count / (n_samples)

Expand Down