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

Easy notes, tell me about where we download notes for electronics syllabus

tell me about where we download notes for electronics syllabus

Themodynamic, 1 kg of air is allowed to expand reversibly in a cylinder beh...

1 kg of air is allowed to expand reversibly in a cylinder behind a piston in such a way that the temperature remains constant at 260 degree while the volume is doubled.The piston i

Fiber optics, 1. A very narrow laser beam in air is shone into a sphere of ...

1. A very narrow laser beam in air is shone into a sphere of solid glass that has a uniform refractive index n>1 and radius ? . The beam makes an angle a in air with the normal to

Free Vibration Problem, I have a multi-part three mass, three spring and th...

I have a multi-part three mass, three spring and three coordinate system that I need to find: The free vibration of the second mode Magnitude of the steady-state force based on a g

Pressure relief valve - aircraft engine, PRESSURE RELIEF VALVE The pres...

PRESSURE RELIEF VALVE The pressure relief valve shown in the figure. controls the oil pressure at the pre-set value demanded by the system. The valve is normally integral with

Unidirectional fabric, Unidirectional Fabric A unidirectional (UD) ply ...

Unidirectional Fabric A unidirectional (UD) ply is one in which all of the fibres run in one direction only. A small amount of fibre or other material may run in other directio

Pysical chemistry , explain hydrogen bonding & impotents of it

explain hydrogen bonding & impotents of it

Aircraft maintance, Explain different types of intakes of aircraft

Explain different types of intakes of aircraft

Construction and working of electron microscope, Electron Microscope Th...

Electron Microscope The development of the electron microscope was based on theoretical work done by Louis De Broglie, who found that wavelength is inversely proportional to mo

Determine the log mean temperature, A tubular heat exchanger is being used ...

A tubular heat exchanger is being used for heating a liquid food from 30 o C to 70 o C. The temperature of the heating medium decreases from 90 o to 60 o C. a) Is the flow conf

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