The method of Archimedes involves approximating pi by the perimeters of polygons inscribed and circumscribed about a given circle. Rather than trying to measure the polygons one at a time, Archimedes uses a theorem of Euclid to develop a numerical procedu
In this article, we present Archimedes’ ingenious method to calculate the perimeter and area of a circle, while taking advantage of a much more facile system of notation (algebra), a much more facile system of calculation (decimal arithmetic and compute
You'll see if you look at the pi_archimedes function that not a lot has changed. Instead of using the math.sqrt function we use the sqrt method of the Decimal object. The edge gets initialised to Decimal(2) rather than 2.0 but otherwise the methods ar
Post a Comment:
Showing 0 Comments: