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
ENGINE DRAINS. There are two types of drains: • Controlled drains - the result of normal operation. • Uncontrolled drains - the result of abnormal operation. CONTROLLE

advantages and disadvantages

problem on dissociation constant

explain elecrochemical series and give its applications

In the previous discussion, we investigated the static aeroelastic behaviour of straight (unswept) wings. These wings are characterised by an effective decoupling of wing bending a

Inspecting a Sprinkler Systems: When inspecting a building that has sprinklers fitted it is not easy to check that the correct water pressure and flow rate can be achieved by

All fluids are to some extent compressible but gases show significant changes in density if pressure and/or temperature is changed. Some gas flows can be treated as being incomp

On a typical aerofoil, a point exists about which the resultant aerodynamic pitching moment M is independent of incidence. This special point is called the Aerodynamic Centre (AC).

i need to design a water treatment plant with raw water entering ph of 10 and needs to have a ph of 7 when leaving the treatment process the rate of flow 260lt/sec

What is a fire risk assessment? Fire Risk Assessment (FRA) can mean different things to different people.  Here we will look at the understanding in the UK and the understandin