Question: Please code in JAVA . Compute PI by Kashi's Method (use iteration, not recursion). Let a regular polygon be inscribed in a unit circle such

 Please code in JAVA. Compute PI by Kashi's Method (use iteration,

Please code in JAVA.

Compute PI by Kashi's Method (use iteration, not recursion). Let a regular polygon be inscribed in a unit circle such that each side, an, subtends an arc = 607 2-1 , and let cn be the chord of the supplement of this arc. Then, since = 3, the recursion relation = (2 + Cr-1 )L2 en makes it possible to calculate any desired cn. Moreover, the Pythagorean relation gives a, = (22-c, ) and half of the perimeter, an approximation to , is the product of the length of a side, times the number of sides, 32

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!