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

Digital electronics, Design 2:1 MUX with strobe input using NAND gates

Design 2:1 MUX with strobe input using NAND gates

Fabric types - woven rovings , The terms roving and yarn are widely used. A...

The terms roving and yarn are widely used. A roving is a collection of untwisted strands wound together. A yarn is a generic term for a continuous strand of textile fibres, filamen

The unity gain follower, The unity gain follower: The somewhat lengthy ...

The unity gain follower: The somewhat lengthy term operational amplifier will now be dropped and it will be referred to, as most people do, simply as the op amp.  The simplest

Principles of sprinkler systems-fire safety engineering, Principles of Spri...

Principles of Sprinkler Systems-Fire safety Engineering Sprinkler systems may be installed in a building to achieve a number of different objectives.  Very often the primary r

Calculate the heat transfer coefficient , Water is flowing at 0.5 ms-1 acro...

Water is flowing at 0.5 ms-1 across a 7.5 cm diameter sausage at 80°C. If the bulk water temperature is 15°C, estimate the heat-transfer coefficient. a) What type of heat tranfe

Cash flow diagrams, Cash Flow Diagrams We will use a cash flow approac...

Cash Flow Diagrams We will use a cash flow approach to analyze the flow of money through out a planning horizon. A cash flow occurs when money actually change hands. We will u

Bme, advantages and disadvantages oh hot and cold die working in the subjec...

advantages and disadvantages oh hot and cold die working in the subject of basic mechanical engineering

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