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

Nomenclature, Nomenclature • Information source device producing inform...

Nomenclature • Information source device producing information to be communicated • Binary digit (bit) fundamental information unit for all digital systems; unit of informat

8051, Architecture of 8051

Architecture of 8051

#tmjjlitle.., Industries that manufacture racing cars prefers nickel based ...

Industries that manufacture racing cars prefers nickel based alloys for engine components and iron based alloys for structural parts. Justify this statement.

Compacting or briquetting, The operation of heating a green compact to an e...

The operation of heating a green compact to an elevated temperature is known as sintering. It is a process by which solid bodies are bonded by atomic forces. It is carried out belo

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

European vanilla Call option with strike price, Let C(K) denote a European ...

Let C(K) denote a European vanilla Call option with strike price K. Assume that all options are identical except for strike price, and strike prices satisfy K1 Question 1: What ar

Hot and cold working, the amount of cold working metal can withstand is dir...

the amount of cold working metal can withstand is directly related to which properties? name two and also discuss the effect that cold working has upon these properties?

Laser beam welding, In laser beam welding coalescence is produced by the he...

In laser beam welding coalescence is produced by the heat obtained from the application of a concentrated coherent light beam impining upon the surface to be joined .   It con

System architecture and design, The home work is to make an model based sys...

The home work is to make an model based system architecture for an electrical car. in Enterprise Architecture with SysMl language.

System engineering approches, how todays manufacturing industry lagging wit...

how todays manufacturing industry lagging with system engineering approaches

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