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

Corporate Restructuring, Corporate Restructuring Corporate restructuring r...

Corporate Restructuring Corporate restructuring refers to the changes in ownership, business max, assets mix and alliances with a view to enhance the shareholder value. Hence, cor

Fiancial managment, Suppose you borrow $10,000 at 10% and you are going to ...

Suppose you borrow $10,000 at 10% and you are going to make monthly payments of $2,500. How long until you pay off the loan?

Process Control, Specify the inner-loop gain such that the damping coeffici...

Specify the inner-loop gain such that the damping coefficient of the closed loop is equal to 0.4

Nuclear physics, Ask queelectron - proton hypothesis

Ask queelectron - proton hypothesis

Engine vibration indication, Engine Vibration Indication The engine vib...

Engine Vibration Indication The engine vibration monitoring (EVM) system shows the out of balance force for the N1 and N2 shaft. High engine vibration shows engine damage or

Ignition systems in aircraft engine, IGNITION SYSTEMS The outline of a ...

IGNITION SYSTEMS The outline of a high energy ignition system is illustrated in the figure. Each high energy ignition unit has a low voltage supply which is controlled by the

Assignment, 1. Indicate one method for alleviating each of the following pr...

1. Indicate one method for alleviating each of the following problems associate incineration of municipal solid wastes (MSW). (a) Odors from the burning organics (b) Particulate

Ans fast, explain any 2 case tools in software engineering

explain any 2 case tools in software engineering

Means of escape, Means of escape: The means of escape can start at any...

Means of escape: The means of escape can start at any point inside a building where there may be people.      The means of escape end when 'ultimate safety' is attained out

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