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

Equivalent shaft horsepower - aircraft maintenance , Equivalent Shaft Horse...

Equivalent Shaft Horsepower (EHP) In practice there is always a certain amount of jet thrust in the total output of the turbo-propeller engine and this must be added to the s.h

Eng, all projrct is correct excpet for last part it will not fire a table...

all projrct is correct excpet for last part it will not fire a table

Servicing of chemical de-icing systems, SERVICING OF CHEMICAL DE-ICING SYST...

SERVICING OF CHEMICAL DE-ICING SYSTEMS: It is essential for the correct operation of the ice protection system that servicing is carried out on a regular basis.  The fluids use

Aeroengine - degree of reaction, Degree of reaction measures the way compre...

Degree of reaction measures the way compression or expansion (for turbines) is shared between rotor and stator shared between rotor and stator of a stage (stage ≡ rotor + stator)

Fire prevention – bays or zones, Fire prevention – bays or zones: To pr...

Fire prevention – bays or zones: To prevent the spread of a fire within an aircraft/engine nacelle, it is divided up into sections or zones, each being separated by a fireproof

Security Analysis & Portfolio management, ABC Ltd. has an investment opport...

ABC Ltd. has an investment opportunity available which will involve a capital outlay in each of the next 2 years and which will produce benefits during the following 3 years. A sum

Miller sweep generator, I want circuit diagram of miller sweep generator wi...

I want circuit diagram of miller sweep generator with components using two transistor bc547

Mechanism for dislocation in plastic deformation, Q. Explain the mechanism ...

Q. Explain the mechanism for dislocation in plastic deformation. Ans.  Stresses are acting on dislocation in a crystal that is known as stress field, due to these stress forc

Elecrical communication, explain application of zener diode for meter prote...

explain application of zener diode for meter protection

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