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

Principles of sprinkler systems-fire safety engineering, Principles of Spri...

Principles of Sprinkler Systems-Fire safety Engineering Sprinkler systems may be installed in a building to achieve a number of different objectives.  Very often the primary r

Mass balance reactions, A continuous fractionating column separates benzene...

A continuous fractionating column separates benzene and toluene into two product streams. We were given all the mass fractions which makes this question easy because all we must ca

Line the crown of the tunnel, A 10m diameter circular tunnel is to be excav...

A 10m diameter circular tunnel is to be excavated in a jointed ground.  The joint sets spaced at 6m are dipping towards the West at 50°.  A horizontal circular tunnel is to be cons

modified internal rate of return mirr, MODIFIED INTERNAL RATE OF RETURN (M...

MODIFIED INTERNAL RATE OF RETURN (MIRR) This method is a financial analysis to rank alternative investment projects of equal size. This method is modification of internal rate of r

Electronics devices and circuits, With the help of circuit diagram and the ...

With the help of circuit diagram and the waveforms,explain the working of a negative clipper with positive biasing voltage.also explain the Same concept in series clipper circuit

What is thermodynamics, Electrical Engineering Online Electrical Engineerin...

Electrical Engineering Online Electrical Engineering Study Sit

Engine controls - aircraft engine, Engine controls: Engine controls are...

Engine controls: Engine controls are very similar to flying controls, and the same types of equipment are used, such as rods, bellcranks and cables. Most control systems use ei

Net present value method: npv, Discounted cash flow methods Net present val...

Discounted cash flow methods Net present value method: NPV It is one of the classic methods of evaluating the investment project. Here each potential projects value is find out its

Ans fast, explain any 2 case tools in software engineering

explain any 2 case tools in software engineering

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