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

Architecture.., draw folded plate roof structure on multi purpose hall?

draw folded plate roof structure on multi purpose hall?

Aviation legislation - maximum take-off mass, Aviation legislation - MAXIMU...

Aviation legislation - MAXIMUM TAKE-OFF MASS: Aircraft companies intending to manufacture a new design must have approval under Chapter A8-1 of BCAR or JAR-21 (Certification Pr

Surveying, Write short notes on the overcoming the following obstucal with ...

Write short notes on the overcoming the following obstucal with good leblel diagram 1 RIVER 2.BUILDING 3.DAM

Compression properties of composites , The IITRI test is widely used to mea...

The IITRI test is widely used to measure the compressive properties of composites. The specimen is rectangular with aluminium end tabs bonded to protect against the gripping actio

Thermodynamics (heat and work), #questi1.) A house has 0.5 cm thick single-...

#questi1.) A house has 0.5 cm thick single-pane glass window 2m by 1.5m .The temperature is 20 degrees Celsius and the outside temperature is -20 degrees Celsius .If there is an ai

Light-emitting diode, Light-emitting diode: One of the most common ligh...

Light-emitting diode: One of the most common light sources used in electronics is the "Light Emitting Diode" (LED).  A LED is a two terminal semiconductor device comprising a p

Aeroengine - linear blade cascade, A blade cascade is a row of evenly space...

A blade cascade is a row of evenly space yp dentical blades. Approximates to a turbomachinery rotor or stator if the radius the annulus is large compared with the bl the annulus is

#title.MARKET VALUE WEIGHT OF EQUITY., AAA has 1,000,000 shares of common s...

AAA has 1,000,000 shares of common stock trading at $20.00 per share. The company''s debt consists of 2,000 $1,000 par value 10-year 7.0% annual coupon bonds with semiannual paymen

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