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

Cro, types of blocking osicillators

types of blocking osicillators

Question for wator resources engineering, Compute the motor size required t...

Compute the motor size required to pump 28.3 cms through a 3,050 m long, 3.66 m diameter pipeline to an upper reservoir 610 m above the lower reservoir. Use a friction facter of 0.

Gsm alarm system with video surveillance, i am building the above mentioned...

i am building the above mentioned system and i intend using an arduino board together with the gsm shield. my problem is i don''t know if there is a way i can control a camera by p

Trusses, determine forces in each member of equilqteral truss

determine forces in each member of equilqteral truss

Aircraft engine, what is the basic operation of gas turbine engine?

what is the basic operation of gas turbine engine?

What is the difference between real money & nominal money?, What is the dif...

What is the difference between real money & nominal money?  Moderate cash is relevant to the evaluate of keeping track of. nominal figure is what is published on the expenses. w

What is Cash dividend , Cash dividend Companies mostly pay dividends in ...

Cash dividend Companies mostly pay dividends in cash. A company should have enough cash in its bank account when cash dividends are declared. If it does most have enough bank bal

Fire risk assessment in uk - fire protection engineering, Fire risk assessm...

Fire risk assessment in UK: In the UK FRAs are required by law in all commercial premises.  But the FRAs are not the same as described in NFPA 551.  The principles remain the

Defects are likely to result in castings, Q. What kind of defects are likel...

Q. What kind of defects are likely to result in castings due to the following?         (i) Core prints on the core are undersigned.        (ii) Core prints on the core

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