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

Depletion mode mosfet, DEPLETION MODE MOSFET: In the depletion-mode typ...

DEPLETION MODE MOSFET: In the depletion-mode type, charge carriers are present in the channel at "Zero" gate bias and the device is, therefore, conducting.  The application of

Power engine - aircraft maintenance, Power Engine: Power producing engi...

Power Engine: Power producing engines come in two main forms Turboprop and turboshaft. a. Turboprop Engines. Turboprop engines extract most of the energy from the gas stream

Nozzle guide vane inspection, Nozzle Guide Vane Inspection: Inspection ...

Nozzle Guide Vane Inspection: Inspection of the NGVs is possible using a strong light source and mirror, it is more probable however that a boroscope inspection will be require

Applications and demerits of electron microscope, Applications - (1)   ...

Applications - (1)          Electron microscopy is widely used in metallurgy, biology, material science, physics, chemistry, and many other technological fields. The developmen

Oil tank- aircraft engine, Oil tank: The oil tank is usually mounted on...

Oil tank: The oil tank is usually mounted on the engine; it may be a separate unit or part of an external gearbox called the sump. It has provision to allow the system to be f

Health care finance basic tool for nonfinancial managers, based on your man...

based on your managemet style or your personal perspective, discuss how you developed your viewpoint how it will influence the way you manage, and what challenges you migt face if

Case analysis, Construct the pro forma cash flow statements for Bloomington...

Construct the pro forma cash flow statements for Bloomington Clinics for five years into the future using the data given in the case plus the most likely growth estimates. a. Wha

Intro Finance Assignment Help, QUESTION 2: Wing Yin Tsui, CEO of Lian Huang...

QUESTION 2: Wing Yin Tsui, CEO of Lian Huang & Wong Bin Dean Hwang Manufacturing Limited is considering a four year project. The project requires an initial investment of $10,000,0

Financial management, The role of financial managers in the changing econom...

The role of financial managers in the changing economic scenario

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