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

Structural engineering, The closed form solutions for ?max and Mmax are giv...

The closed form solutions for ?max and Mmax are given on page 16.1-276 for several axial loads. Figure C-C2.2 summarizes the results for the first benchmark problem and Figure C-C2

What are the elements limiting higher data rate in networks, Question: ...

Question: (a) What are the elements limiting high data rate in cellular networks? (b) Describe the following characteristics of 4G mobile networks: - Always on - RAN A

What is the meaning of context-awareness, Question : (a) The Guide proj...

Question : (a) The Guide project has been developed to provide city visitors with a hand-held context-aware tourist guide. (i) In this case, what is the meaning of context-a

Control surface effectiveness and reversal, Control Surface Effectiveness a...

Control Surface Effectiveness and Reversal To discuss the effectiveness and loss of a control surface, we allow a rigid rotation δ of the flap set by a flight control system (o

Thermo, what is the answer for 2+2=?

what is the answer for 2+2=?

Thermodynamics, What are the importance of engineering thermodynamics

What are the importance of engineering thermodynamics

Long period oscillation , The phugoid is a relatively low-frequency oscilla...

The phugoid is a relatively low-frequency oscillation in which kinetic and potential energies are exchanged. The mode is generally characterized by low damping and approximately co

Thermofluids 1- aeronautical option, general energy equation, non- flow ene...

general energy equation, non- flow energy equation, steady flow equation, joule''s law

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