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

Water, Ask Hardness of bore well water is less than sea water - justify

Ask Hardness of bore well water is less than sea water - justify

Industrial &production engneering, what type of topic or subject is gud for...

what type of topic or subject is gud for the project before the final year project

Aerodynamic centre, On a typical aerofoil, a point exists about which the r...

On a typical aerofoil, a point exists about which the resultant aerodynamic pitching moment M is independent of incidence. This special point is called the Aerodynamic Centre (AC).

Spot welding, In spot welding, the parts to be joined are normally over lap...

In spot welding, the parts to be joined are normally over lapped. The work piece are clamped between two water cooled copper electrodes. On the passage of a high transient current,

HELP!!, HELP IN ELECTRONIC...I AM DOING ELECTRONIC ENG. ... GUIDE ME THE WA...

HELP IN ELECTRONIC...I AM DOING ELECTRONIC ENG. ... GUIDE ME THE WAY...

Logic gate - not gate, THE INVERTER ('NOT' GATE) Figure shows the symbo...

THE INVERTER ('NOT' GATE) Figure shows the symbol for an inverter, where the output will produce the complement of the input. This device is often employed when the complement

Accelerated Slipstream, Does the accelerated slipstream create more lift on...

Does the accelerated slipstream create more lift on part of a wing behind the propeller of a multa-engine aircraft? If so, about how much % for an Air King b200? Also the V-22 O

Level indicator., i have a project to be completed, the project is, How to ...

i have a project to be completed, the project is, How to make a device which warns you when your water reservoir is full?? i want the name of device needed and the way to complete

Mergers & acquisitions / valuing synergies, 1-calculate the present value o...

1-calculate the present value of the expected synergies. ( Assume a tax rate of 35%. a discount rate of 10% suitable for the cost oand revenue synergies combined, and inflation of

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