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
Comparison of FP result with experiment At the lowest test lift coefficient the flow is just subcritical (in the sense that the Mach number of the flow component normal to the

the speed of an object at the end of 4 succesive seconds is 2o,25,3o and 35 m/sec respectvly, what is the acceleration of this object?

a note on tracing a closed loop. What are the characteristic features of a closed loop?(


OUTPUT CHARACTERISTICS: Figure shows a "Common Emitter" amplifier stage. Common Emitter Amplifier Stage With no base/emitter bias applied, there will be no collector

Seven years ago, after 15 years in public accounting, Stanley Booker, CPA, resigned his posiition as Manager of Cost Systems for Davis, Cohen, and O''Brien Public Accountants and s

Capital budgeting process: When investing in a long term assets, the project has been evaluated in term of its profitability and expected cash flow in the future. The capital budge

Description of the Diet Problem The goal of the diet problem is to find an ”optimal” combination of foods that will satisfy all the daily nutritional requirements of an individual.

i want to make a project which is based on video transmission via laser ..please help me

et C(K) denote a European vanilla Call option with strike price K. Assume that all options are identical except for strike price, and strike prices satisfy (K1) What are the no-a