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

Home inventory system, Software House PLC (SHP) is a pan European software ...

Software House PLC (SHP) is a pan European software development group that operates in the UK and the European Union. The company develops and markets off the shelf & bespoke softw

Fins vs canards , Fins vs Canards  Canard control - Good lift/latax co...

Fins vs Canards  Canard control - Good lift/latax control for moderate angles of attack. - Shed vortices can interfere with tail to generate roll moment. - Tendency to stall

Model independent option valuation , Derive the functional relationship bet...

Derive the functional relationship between the no-arbitrage values of the two vertical spreads, C (K1)-C (K2) and C (K2)-C (K3).

Sinking fund depreciation method in economical engineering, Sinking Fund De...

Sinking Fund Depreciation Method Prior to World War II little attention was given to depreciation, and some business actually established savings accounts in which uniform annu

Medical Optics, what are wavefronts and how are they useful in the field o...

what are wavefronts and how are they useful in the field of optics and medicine?

Capital structure of X Ltd. as on 31st Dec 2003, The following is the capit...

The following is the capital structure of X Ltd. as on 31st Dec 2003 Rs in m

Fluid (liquid) ice protection systems, FLUID (LIQUID) ICE PROTECTION SYSTEM...

FLUID (LIQUID) ICE PROTECTION SYSTEMS: Liquid ice protection systems can be used as either anti-ice or de-ice systems.  The system is designed to project a film or fluid over t

Land serveying, list out the errors in lenier measurment

list out the errors in lenier measurment

Aviation legislation - air operator''s certificate (aoc), Air Operator's Ce...

Air Operator's Certificate (AOC) A Company operating an aircraft for the purpose of Public Transportation, within the UK, must have an AOC granted to the company, in accordance

The decoupled dynamics, The longitudinal and lateral states of the decouple...

The longitudinal and lateral states of the decoupled linear dynamics are distinct sets of variables. They are conveniently remembered by the flight-control engineer by visualising

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