Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Over the centuries, people have come up with various ways to approximate the number pi. Here are three infinite series that can be used: Madhava's

image text in transcribed

Over the centuries, people have come up with various ways to approximate the number pi. Here are three infinite series that can be used: Madhava's representation: pi = squareroot 12 sigma^infinity_k=0 (-3)^-k/2k + 1 Newton's: pi = 2 sigma^infinity_k=0 2^k k!^2/(2k + 1)! Ramanujan's: 1/pi = 2 squareroot 2/9801 sigma^infinity_k=0 (4k)! (1103 + 26390k)/(k!)^4 396^4k Do the following: (a) Use the Wikipedia to find when each of the above mathematicians lived. (b) Write script files that sum these series out to the k = 10 term. Find the approximation to pi for each, and compare it to the exact value of pi. How many digits are correct for each? (c) Convert your Newton code to use a while loop instead of a for loop. Use this to determine how many terms must be included in order to approximate pi within 10^-10

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions