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

Fire alarm systems: All buildings require a means by which the warning  of  fire  can  be  given  to  all occupants.  In the very smallest premises this might be achievable by


Gandhi Textile company produces shirts and pants.The shirts demands for the following two months are 10 and 12 units,whereas the demand for pants are 14 and 15.The capacity for fab

Q.   Define the crystal symmetry with reference to crystal structure. Ans.CRYSTAL SYMMETRY: A crystal is an orderly array of atoms in space. Atoms organize themselves in an

Write question here...i want all the techniques objectives tools used limitations for cist control and cost objectives

Transfer Function Models Corresponding to each linear state space equation in the time domain with input u(t) and output y(t) is a matrix of transfer functions relating the Lap

Matrix laboratory solutions with matlab assignment help MATLAB (matrix laboratory) is an exact processing atmosphere and fourth-generation selection terminology. Designed by Nu

Question 1 A large number of forecasting methods are available. Discuss the categories of forecasting methods Question 2 Explain how economic order quantity can be calculated

Ask questioy 4 men #Minimum 100 words accepted#