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

Mass Balances, Engineers sometimes add chlorine to pipes to disinfect water...

Engineers sometimes add chlorine to pipes to disinfect water. It is desired to achieve four logs of kill. This means that the effluent concentration of microoganisms is 10^-4 times

Secure communication, Distinguish between passive and active attacks,

Distinguish between passive and active attacks,

Finance derivative, What are the no-arbitrage lower bound, and the no-arbit...

What are the no-arbitrage lower bound, and the no-arbitrage upper bound, of the vertical spread c(k1)-c(k2)?

Infiltration enters, ways via which infiltration enters a sewer system

ways via which infiltration enters a sewer system

Electronics devices and circuits, With the help of circuit diagram and the ...

With the help of circuit diagram and the waveforms,explain the working of a negative clipper with positive biasing voltage.also explain the Same concept in series clipper circuit

Inspecting a sprinkler systems, Inspecting a Sprinkler Systems: When i...

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

Torsional divergence, Torsional Divergence Lets first try to explain a...

Torsional Divergence Lets first try to explain and interpret torsional divergence for the aerofoil structural model physically. An additional figure describing the mechanical s

Propeller pitch control, Propeller pitch control: Before looking at pro...

Propeller pitch control: Before looking at propeller pitch control an understanding of the relationship between the 'Power Lever' and the 'RPM (condition / speed) Lever' with r

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