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

Aeroengine - rotor flow kinematics , Flow through axial-flow turbo machine ...

Flow through axial-flow turbo machine rotors can often be assumed axisymmetric i.e. velocity components do not change around the rotor circumference either at inlet or at outlet. N

Propeller control, Propeller Control: There is no separate propeller co...

Propeller Control: There is no separate propeller control selector for this engine / propeller combination. Instead of a separate propeller control lever, the governor is desi

Synchro resolvers for low load, Synchro resolvers for low load: Both tr...

Synchro resolvers for low load: Both transmitter and receiver rotors are energised by the same AC supply and will induce equal and opposing voltages in the stator coils provide

Define demat account?, Define Demat Account? What is the use of it? Dema...

Define Demat Account? What is the use of it? Demat indicates Dematerialization of reveal, in easy it is an consideration with which a individual can business in protection indus

Electrical engineering, i want to take your kelp in writing the research pa...

i want to take your kelp in writing the research paper, which can be published in reputed international journal.

Ts diagram, how to find points on Ts diagram?

how to find points on Ts diagram?

Resection, method of solving resection

method of solving resection

Hazard in dpsd, obtain the hazard free circuitfor Boolean expression.f=(0,2...

obtain the hazard free circuitfor Boolean expression.f=(0,2,4,5,8,10,14) and also implement the NAND implementation for the circuit

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