calculate pi for infinite series, Other Engineering

Assignment Help:
Write a program to calculate from the infinite series:


Print a table showing the value of approximated by one term, two terms, three terms, four terms, and so on from the series. The table should have three columns showing the number of terms used, the approximated value of , and the difference between the actual value (3.141592654) and the approximate value calculated by the above sum (eight places of decimal). How many terms of this series are needed to get three significant digits of accuracy (3.14)?

Your program should prompt the user to identify the number of terms to be summed up, and then should print the above table with three columns.

Your solution should accomplish the following:
• Ask user to enter the number of terms to use for approximating the value of .
• Perform the necessary calculations to determine the approximate value of .
• Find the difference between approximated value of and the actual value of .
• Display the table (sample given at the end) showing three columns showing the number of terms used, the approximated value of , and the difference between the actual value (3.141592654) and the approximate value calculated by the above sum (eight places of decimal).
• Ask the user whether the program needs to be re-run or terminated.
on..

Related Discussions:- calculate pi for infinite series

LIBS, Laser induced breakdown spectroscopy

Laser induced breakdown spectroscopy

The axial flow compressor - aircraft engine, The axial flow compressor: ...

The axial flow compressor: The axial flow compressor is by far the most popular type of compressor and, although it is more difficult to manufacture, it is a more efficient com

Structures , how to find the equation for deflection of a cantilever beam s...

how to find the equation for deflection of a cantilever beam subjected to udl in terms of Airy''s stress function

Imaging infrared seekers , Imaging Infrared Seekers  A more common appr...

Imaging Infrared Seekers  A more common approach is to use an infrared waveband where there is a large amount of ambient light from the thermal emission of the background. Th

Security Analysis & Portfolio management, ABC Ltd. has an investment opport...

ABC Ltd. has an investment opportunity available which will involve a capital outlay in each of the next 2 years and which will produce benefits during the following 3 years. A sum

Heat capacity, Specific heat capacity of water in a continues flow method?

Specific heat capacity of water in a continues flow method?

Differentiate crystalline and amorphous materials, Q.   Differentiate cryst...

Q.   Differentiate crystalline and amorphous materials? (a)Crystalline solids:  Those solids in which the, ions atoms or molecules in a definite regular repeated

Y 4 u, Ask questioy 4 men #Minimum 100 words accepted#

Ask questioy 4 men #Minimum 100 words accepted#

Flight dynamics, Flight dynmaics The study of aircraft- Stability & Tri...

Flight dynmaics The study of aircraft- Stability & Trim (Equilibrium)- Motion due to • Control inputs • Atmospheric Disturbances • We will consider for the most part f

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd