calculate pi for infinite series, Other Engineering

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..
Posted Date: 10/26/2012 4:19:09 PM | Location : United States







Related Discussions:- calculate pi for infinite series, Assignment Help, Ask Question on calculate pi for infinite series, Get Answer, Expert's Help, calculate pi for infinite series Discussions

Write discussion on calculate pi for infinite series
Your posts are moderated
Related Questions
how to write code for any particle shape using KK-3 system coding in grope technology

process / description.. if I put A=1000 and B=0100 A>B gate will show output 1 and dose A

Servo accelerometer Electro-mechanical servo (force balance) accelerometer uses an electromagnet to provide restoring force. The position of the seismic mass is measured by a p



AIRCRAFT RADIO INSTALLATION (STATION) LICENCE AND APPROVAL 1. A radio installation licence is issued by the Department of Trade and Industry Radio Communications Agency , fo


• ''Discussed Since the promised return on Russian government debt is much higher than the promised return on US government debt, you should invest your money in Russia


Explain the following observations: cells of Escherichia coli fermenting glucose grow faster when NO3 - is supplied to the culture and then grow even faster when the culture is hig