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
what is electrical transmission and electromagnetic radiation in the form of energy transfer?

Is the dividend paid on common stock taxable to shareholders? The results paid on common inventory are taxed on two stages in the U.S. First at the company stage, as a results c

The various cementing materials are classified as follows. a) Argillaceous cementing materials b) Calcareous cementing materials c) Carbonaceous cementing materials Argillaceous Ma

Q. The Energy related CO 2 emissions per usage are in Florida: What is the CO 2 emission in kg/kWh and in lb/kWh in Florida? Knowing the emissions and the total gene

#questionA piece of Al weighing 6 kg and initially at a temperature of 300OC is suddenly immersed in a fluid at a temperature of 20OC. The convectice heat transfer coefficient is 5

how thermoelecteric thermometer is contructed and how it working

how can we determine the crystal structure of material by having interplanar spacing d?

what are the advantages of dual-card Kanban system campared to single card in a manufacturing environment

Q. Explain Rayleigh criterion of resolution. What is meant by resolving power of grating? Ans.   Resolving Power (i)  Meaning of Resolution : The resolving power of

Fuel properties of Aircraft: EASE OF FLOW The ease of flow of a fuel is mainly a question of viscosity, but impurities such as ice, dust, wax, etc., may cause blockages in