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

ENMIN5018, Design a detailed surface mine excavation plan. Detail developme...

Design a detailed surface mine excavation plan. Detail development requirements. Detail Production requirements including a full description of the method selected. Number of produ

Water traetment, what are the different phosphates used in water treatment?...

what are the different phosphates used in water treatment?

Naked short selling, are retail investors or traders permitted to naked sho...

are retail investors or traders permitted to naked short a stock? who is permitted to naked short a stock assuming there has been no suspension of this practice and following the f

Discuss the heuristic search as applied to an and/or graph, Question 1 Wha...

Question 1 What is Artificial Intelligence? Discuss the two class of approaches followed for AI Question 2 Discuss the heuristic search as applied to an AND/OR Graph Ques

Mining, Students are to undertake a tunnel blast design for the following c...

Students are to undertake a tunnel blast design for the following conditions: • Tunnel is 5.5m wide by 5.5.m high • Rock is a granite with a UCS of 300 MPa • Drill hole diameter is

Water traetment, what are the different phosphates used in water treatment?...

what are the different phosphates used in water treatment?

Couplings in engine, Couplings: Because of the requirement to make main...

Couplings: Because of the requirement to make maintenance tasks such as engine removal/refit, gearbox removal/refit easier, it is necessary to have a means of coupling the turb

Java, 2. Differentiate between stream oriented and data gram oriented socke...

2. Differentiate between stream oriented and data gram oriented socket in java?

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