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

Matlab, Provided a 1D array of integers, find all combinations of 3 values ...

Provided a 1D array of integers, find all combinations of 3 values from this set such that: a+b+c=0 For example, if one were provided with the set [3 1 3 -4 -6], the resulting answ

Finance, Derive the functional relationship between the no-arbitrage values...

Derive the functional relationship between the no-arbitrage values of the two vertical spreads.

Open innovation, is there any open innovation engineering web portal in ind...

is there any open innovation engineering web portal in india

Depreciation Tax Calculation, Depreciation Calculation Two most popular me...

Depreciation Calculation Two most popular methods of charging depreciation are: straight line and diminishing balance or written-down value (WDV) methods. For reporting to the sha

Jfet characteristics with external bias, Explain the drain characteristics ...

Explain the drain characteristics of JFET with external bias

Application to the axial flow compressor, APPLICATION TO THE AXIAL FLOW COM...

APPLICATION TO THE AXIAL FLOW COMPRESSOR: In order for the compressor to deliver a high mass airflow for a minimum effort required to drive it, it is important that all the com

Technical Paper, I need help summarizing a technical paper.

I need help summarizing a technical paper.

Rayleigh scattering, how rayleigh scattering occurs in optical fiber cable

how rayleigh scattering occurs in optical fiber cable

Electronic devices, give a criticalanalysis of a zener diodedata with suita...

give a criticalanalysis of a zener diodedata with suitable chracteristicsand applications

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