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

Variable magnetic coupling transducers, Variable magnetic coupling transduc...

Variable magnetic coupling transducers A transducer of this type relies on variable coupling between magnetic coils. An example is a Linear Variable Differential Transformer (L

Application to the axial flow compressor, APPLICATION TO THE AXIAL FLOW COM...

APPLICATION TO THE AXIAL FLOW COMPRESSOR: In order for the compressor to deliver a high mass airflow for a minimum effort required to drive it, it is important that all the com

Detect the percolation by GUI Matlab, the percolation should be visualize ,...

the percolation should be visualize , and the path of the sphere also. i wanna see the relationship between the number of sphere & the percolation . change the # of sphere and show

End centered tetragonal lattice in the bravis list, Q.  There is no end ce...

Q.  There is no end centered tetragonal lattice in the bravis list, but there is an end centered orthorhombic lattice. Explain why this is so? Ans.  A tetragonal system is

Terrestrial telescope., how to making terrestrial tele scope an how its wor...

how to making terrestrial tele scope an how its work and formulation of terrestrial telescope

Matrices for risk analysis, Matrices for risk analysis: NFPA 551 descr...

Matrices for risk analysis: NFPA 551 describes a technique of using matrices for risk analysis.  Such matrices are quite commonly used in the UK for assessing risk but, fortun

Linear programing, Description of the Diet Problem The goal of the diet pro...

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.

Cash Conversion Cycle, The need for working capital to run the day-to-day b...

The need for working capital to run the day-to-day business activities cannot be overemphasized. We will hardly find a business firm which does not require any amount of working ca

Low pressure turbine clearance control valve - aircraft, Low pressure turbi...

Low pressure turbine clearance control valve: At take-off and low altitude the valve is in its normal closed position allowing cooling airflow to the core compartment. When an

Urban stormwater, Is there anyone on your staff good with HEC-HMS software ...

Is there anyone on your staff good with HEC-HMS software for modeling rain events?

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