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
Divided entrance duct On a single engine aircraft with fuselage mounted engines, either a wing root inlet or a side scoop inlet may be used. The wing root inlet presents a pro

applications of the subject-strength of materials

ceramics under heat

Thrust calculation: The amount of thrust produced depends upon two things:- The MASS of air which is moved rearwards in a given time, the ACCELERATION imparted to the air.It

VDD=20V,RG=1MOHM,RD=3.3KOHM,RS=1KOHM,IDSS=8MA,VP=-6V

i got an assignment on chemical engineering reactions

what is a procedure of solving the questions using hanning window while designing a fir filter?

The database contains two very simple tables. One holds student information and the other holds assignment grade information. Our goal is to provide a very rudimentary interfa

When we solved our simple problem we saw that the truncation error was O(x) We therefore expect that as the number of grid points is was O(x). We therefore expect that as the numbe

This case has been framed in order to test the skills in evaluating a credit request and reaching a correct decision. Perluence International is large manufacturer of petroleum and