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

Technical drawing, career aspiration as a determinant to senior secondary ...

career aspiration as a determinant to senior secondary school students performance in Technical drawing.

Mass balance reactions, A continuous fractionating column separates benzene...

A continuous fractionating column separates benzene and toluene into two product streams. We were given all the mass fractions which makes this question easy because all we must ca

External air tappings - aircraft engine , External air tappings: Engine...

External air tappings: Engines vary as to the number of external air tappings and their usage. The following notes are taken from the Pratt and Whitney JT9D but have been simp

Process control, what is the input to a process control system?

what is the input to a process control system?

Easy notes, tell me about where we download notes for electronics syllabus

tell me about where we download notes for electronics syllabus

Calculate the density at maximum flow, (a)  A section of road has a free fl...

(a)  A section of road has a free flow speed of 55km/h and a jam density of 367 vehicles per kilometre. Assuming under a linear speed-density relationship, calculate the density at

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