calculate pi for infinite series, Other Engineering

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..
Posted Date: 10/26/2012 4:19:09 PM | Location : United States







Related Discussions:- calculate pi for infinite series, Assignment Help, Ask Question on calculate pi for infinite series, Get Answer, Expert's Help, calculate pi for infinite series Discussions

Write discussion on calculate pi for infinite series
Your posts are moderated
Related Questions
Objective: Students should familiarize themselves with bonds and/or preferred stock as an investment opportunity and as a source of funds. In this assignment students will determin

According to this it is impossible to specify precisely and simultaneously two physical quantities those are canonically conjugate to each other and the product of the uncertainty

i would like the solution of this assignment

PERMIT TO FLY A Permit to Fly may be issued to an aircraft that does not, for a variety of reasons, fully comply for a Certificate of Airworthiness. These reasons might be b

when same music is played in veena and violin , we shall hear the sound of

a pilot entering a bay on course 60.3 degrees at speed 12 miles per hour sees a light bearing 37.3 true and 20 minutes later he sees it bearing 20.0 degrees true. if he keeps the

Sprag Clutch : Sprag clutches are used to provide the disconnect mechanism between the starter motor and the engine. The clutch will transmit drive from the starter motor, but

how would I find assistance with such toics as: probability assessment methods, risk modeling, stochatic dominance and multi-attribute methods?

A pump delivers 40 lpm to a 100 mm bore/25 mm rod cylinder to move a load of 22 kN. A throttle is introduced on the rod end, and return flow with a 10 lpm flow rate. A 70 bar press

i am doing be in mechanical engg in india. so can i do my masters in geoophysic ?