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

Thermodynamics, show that heat and work are path functons

show that heat and work are path functons

Oscilloscope, connecting probe in CRO causes

connecting probe in CRO causes

Iosipescu shear test, A second way to determine the shear modulus is to use...

A second way to determine the shear modulus is to use the Isopescu shear test. The sample is placed in a jig and loaded as shown. Under load, a region of pure shear exists

Beam theory method , Here, it is assumed that the crack is effectively long...

Here, it is assumed that the crack is effectively longer than the value measured on the side of the specimen. If one assumes that it is longer by an amount Δ, then the new crack le

Banking and finance, identify the role of the regulators and problems assoc...

identify the role of the regulators and problems associated with regulation

Weighted average cost of capital, Using this link and the information there...

Using this link and the information therein ( http://www.sec.gov/Archives/edgar/data/1110452/000119312507151600/d20f.htm#tx19738_13.) find Air France’s weighted average cost of ca

Ewing’s molecular theory of magnetism, Ewing’s molecular theory of magnetis...

Ewing’s molecular theory of magnetism   Every molecule of a magnetic substance behaves as a tiny magnet called molecular magnet. In an unmagnetized state the molecular m

Assignment on risk and return, Assignment on Risk and Return# Stock has bet...

Assignment on Risk and Return# Stock has beta of 1.5 & an expected return 11%. A risk free asset earns 2%. Determine the expected return on a portfolio that is equally invested in

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