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

Propeller construction, PROPELLER CONSTRUCTION METAL PROPELLERS Mo...

PROPELLER CONSTRUCTION METAL PROPELLERS Most metal propellers have forged alloy blades protected from corrosion by anodising and often further protected by polyurethane en

Circuit, in the circuit what is the voltage at point with respect to ground...

in the circuit what is the voltage at point with respect to ground

Finance.., hi, I need to do this question but I couldn''t capable to do i...

hi, I need to do this question but I couldn''t capable to do it. so can you tell me how much money I can give you to be done? How would you value the price of a Microfinance I

Oversampling dac, Also called 1-bit DAC or sigma-delta DAC. It uses pulse-...

Also called 1-bit DAC or sigma-delta DAC. It uses pulse-density modulation (PDM) which encodes the signal amplitude by the relative density of the pulses. The output voltage has on

Cold shunt and misrun casting, Q. Discuss briefly the causes and remedies o...

Q. Discuss briefly the causes and remedies of misrun and cold shunts casting    Cold Shunt and Misrun : When the metal is unable to fill the     mould cavity completely and t

Fabric types - woven rovings , The terms roving and yarn are widely used. A...

The terms roving and yarn are widely used. A roving is a collection of untwisted strands wound together. A yarn is a generic term for a continuous strand of textile fibres, filamen

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

Flight dynamics - pitching moment, The centre of pressure (CP) is defined a...

The centre of pressure (CP) is defined as the point about which the resultant moment is zero; the net effect of the flow in terms of forces and moments would be the same as if the

Density correction factor, superheated steam flow measurement please provid...

superheated steam flow measurement please provide formula used for density correction factor

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