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

Engine speed indicators, Engine speed indicators: All engines have thei...

Engine speed indicators: All engines have their rotational speed (R.P.M.) indicated. On a twin or triple-spool engine, the high pressure assembly speed is always indicated; in

Barometric lag, My question is that i am working in a petrochemical plant w...

My question is that i am working in a petrochemical plant where in final stage disc ring reactor the barometric lag is chocked completely the system is under vacuum if i introduce

Damage limits and repair in cold section inspection , Damage Limits and Rep...

Damage Limits and Repair Minor damage to compressor and fan blades may be repaired provided the damage is within the allowable limits established by the manufacturer in the AMM

Explain the concept of error function, Question 1 Explain the concept of e...

Question 1 Explain the concept of error function Question 2 Obtain the Fourier transform for the following Single sided exponential signal Gate function Triangula

Engineering Management, what is the best Master thesis that can be done i...

what is the best Master thesis that can be done in this major ?I need suggestions regards

Operations research 1, oilcois building a refinery to procduce four product...

oilcois building a refinery to procduce four products diesel, gasoline

Petroleum Engineering project, I need help About the project I sent and it ...

I need help About the project I sent and it is the third time I am sending so please I really want help

Auxiliary power unit oil system, Auxiliary power unit oil System: A sum...

Auxiliary power unit oil System: A sump at the bottom of the gearbox collects the returning oil, in some APU's the rear face of the sump is finned and let into the intake plenu

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