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

Physics, what is electrical transmission and electromagnetic radiation in t...

what is electrical transmission and electromagnetic radiation in the form of energy transfer?

Mobile Communication, A car, moving in the south-east direction at a veloci...

A car, moving in the south-east direction at a velocity of 5 m/s, receives a ray of power of -120 dBm each from the north, east and west. The carrier frequency is 300 MHz. (i) Sket

Blow moulding and thermoforming process, Q . Write short note on blow moldi...

Q . Write short note on blow molding. OR Explain the Thermoforming process.   What are the plastic fabrication method write in brief with neat sk

Aeroengines - fluent , Installing FLUENT on a MWS machine Fluent was origi...

Installing FLUENT on a MWS machine Fluent was originally developed on unix and graphical output was provided by calls to the X Windows graphics system For this reason provided by c

Feathering the propeller, Feathering the propeller: If there is an engi...

Feathering the propeller: If there is an engine failure in flight, the propeller would windmill creating drag and increasing any damage that had occurred in the engine. Feathe

What are debentures?, What are debentures?  A Debenture is " A document ...

What are debentures?  A Debenture is " A document of contract of loans which is given under the organization's press and provides a venture that the debenture owner will get a s

Flight control - characteristic equation, characteristic equation The c...

characteristic equation The characteristic equation (C.E.) corresponding to the linear state space equations comprising the state equation? x = Ax + Bu and output equatio

Assignment, Real time processing is suitable when it is necesssary to have ...

Real time processing is suitable when it is necesssary to have the latest information in the following types of business operations

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