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

Assignment , I want help for the circuit theory

I want help for the circuit theory

4 bit comparator, process / description.. if I put A=1000 and B=0100 A>B ga...

process / description.. if I put A=1000 and B=0100 A>B gate will show output 1 and dose A

Design project, I need report explain every things about my project

I need report explain every things about my project

Numerical methods, Numerical solutions to equations: Many practical p...

Numerical solutions to equations: Many practical problems in engineering involve complex boundary conditions and variable properties that cannot be solved analytically, creat

Oil pumps, what is the function and location of the components?

what is the function and location of the components?

Events and its efffeccts, i need to prepare my aasingment for financial dat...

i need to prepare my aasingment for financial data analysis for that i need 10 business events

Climbing drum peel test , Climbing Drum Peel Test The CDP test works by a...

Climbing Drum Peel Test The CDP test works by attaching a free end of a face sheet of a sandwich panel to a drum which then rolls across the panel, peeling off the face sheet. A

Neutral points of a bar magnet , Fix a drawing paper on a drawing board wit...

Fix a drawing paper on a drawing board with help of drawing pins. Place a magnetic needle on the drawing paper to identify geographical north and south poles. Mark north, sou

Material science, Ask question #Minimum lkjhbi mbj jhb uy 100 words accept...

Ask question #Minimum lkjhbi mbj jhb uy 100 words accepted#

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