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

Finance help, After five years, what is Judy’s total income (interest par) ...

After five years, what is Judy’s total income (interest par) from each bond? Should she use this total as a way of deciding which bond to purchase?

International finance, at the beginning of year 1 the terranian central ban...

at the beginning of year 1 the terranian central bank conducted k100 million of dollar selling/terranian kwacha buying intervention. The intervention was undertaken at the rate of

Power engine - aircraft maintenance, Power Engine: Power producing engi...

Power Engine: Power producing engines come in two main forms Turboprop and turboshaft. a. Turboprop Engines. Turboprop engines extract most of the energy from the gas stream

Dual input unbalanced output differential amplifier ac analy, analysis of d...

analysis of dual input unbalanced output differential amplifier ac analysis?

Falling weight impact testing , Drop-weight impact towers are frequently us...

Drop-weight impact towers are frequently used to generate low velocity impact damage. Typically, the falling mass will be instrumented, containing a load-cell for measuring the lo

Flight dynamics-trim tabs, Trim tabs are small flaps attached to the rear o...

Trim tabs are small flaps attached to the rear of the main control surfaces. They can be adjusted the pilot to reduce the force required to hold the control surface in its deflecte

Hot and cold working, the amount of cold working metal can withstand is dir...

the amount of cold working metal can withstand is directly related to which properties? name two and also discuss the effect that cold working has upon these properties?

Case Let, This case has been framed in order to test the skills in evaluati...

This case has been framed in order to test the skills in evaluating a credit request and reaching a correct decision. Perluence International is large manufacturer of petroleum and

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