π is the ratio of a circle's circumference to its diameter, a method for computing π is to draw a circle inscribed in a square, and randomly placing points in the square. Assuming an infinite (a large enough) number of points, the ratio of points inside the circle to the total number of points is equal to π/4. Write Scheme functions to estimate the value of π using this method. Assume the value of the radius of the circle to be 1 and, the side of the square is equal to the diameter of the circle.
-
Notifications
You must be signed in to change notification settings - Fork 0
foymichelle/compute-pi-scheme
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