Question: Engineers and architects have needed to know the approximate value of ( the ratio of the circumference of a circle to its diameter ) for
Engineers and architects have needed to know the approximate value of the ratio of the circumference of a circle to its diameter for millenia, leading mathematicians to developed numerous approximation techniques over the ages. One approximation method is the MadhavaLeibniz formula
dots
where
Write a code to approximate by calculating and adding the first terms to of this sequence. Store the result to a variable named piapprox.
"This formula is named after German mathematician Gottfried Leibniz, who, along with Scottish mathematician James Gregory, discovered it in the s Had the Internet been aroupd at the time, they might have realized that Indian mathematician Madhava of Sangamagrama and his students were already using equivalent formulas two or three centuries eariier. While this formula can calculate it is very slow to converge. Much faster approximations have been developed in the centuries since.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
