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

Kalman filtering , Kalman Filtering  All of the measurements generat...

Kalman Filtering  All of the measurements generated by the seeker and the navigation system/rate gyros are noisy, and therefore need to be filtered.  The Kalman filter, a

Seekers , Seekers   There are two main types of sensor used in autono...

Seekers   There are two main types of sensor used in autonomous vehicles (seekers and position/attitude sensors) - although not all systems have both.            - Airc

Vertical spread, what are the no-arbitrage lower bound of the vertical spre...

what are the no-arbitrage lower bound of the vertical spread

Flight fine pitch stop failure, FLIGHT FINE PITCH STOP FAILURE (OVERSPEED) ...

FLIGHT FINE PITCH STOP FAILURE (OVERSPEED) An overspeed is prevented by an automatic coarsening device. A switch mounted on the Hub closes when the blade angle is below Flig

8051, Architecture of 8051

Architecture of 8051

Explain in brief about priority rules for scheduling?, Question 1 A large ...

Question 1 A large number of forecasting methods are available. Discuss the categories of forecasting methods Question 2 Explain how economic order quantity can be calculated

#titleMetrics.., Suppose you are managing a software-development project fo...

Suppose you are managing a software-development project for which reliability is a major concern. A continual stream of anomalies is discovered in the software during the testing p

Thermodynamics, original temp. of plate is 25 degree c.when put in burnace ...

original temp. of plate is 25 degree c.when put in burnace its upper part is 250 c and lower is 100 and mass is 56kg.find out heat transfer

B.tech, limitations of nernsts law

limitations of nernsts law

machine molding, Machine molding is suitable for the faster and uniform qu...

Machine molding is suitable for the faster and uniform quality moulds, needed for mass production of castings. For preparing the moulds, various moulding machines are used. Majorit

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