60 515
Assignments Done
98,1%
Successfully Done
In April 2018

Answer to Question #9063 in MatLAB | Mathematica | MathCAD | Maple for sara

Question #9063
3. With considering the following algorithm for computing pi:

I. Set a = 1, b = 1/sqrt(2), t = 1/4 and x = 1

II. Repeat the following commands until the difference between a and b is within some desired accuracy:

y = a
a = (a + b)/2
b = sqrt(b*y)
t = t - x*(y - a)^2
x = 2*x

III. From the resulting values of a, b and t, an estimate of pi is

Pi_est = ((a + b)^2)/(4*t)

How many repeats are needed to estimate pi to an accuracy of 1e-8? 1e-15?

Expert's answer
Unfortunately, your question requires a lot of work and cannot be done for free.
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions