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

Aircraft radio installation licence and approval, AIRCRAFT RADIO INSTALLATI...

AIRCRAFT RADIO INSTALLATION (STATION) LICENCE AND APPROVAL 1. A radio installation licence is issued by the Department of Trade and Industry Radio Communications Agency , fo

Dsp, h(t) is an analog IIR filter, with the poles lambda_1 = -1, lambda_2 =...

h(t) is an analog IIR filter, with the poles lambda_1 = -1, lambda_2 = -1+i, lambda_3 = -1-i and no zeros. let h[n] be a digital IIR filter with poles which defined by e^lambda_i a

FISICA, EL DESPLAZAMEINTO DE UNA PARTICULA ESTA DADO POR S=(-2+3T)e¨-0.5t

EL DESPLAZAMEINTO DE UNA PARTICULA ESTA DADO POR S=(-2+3T)e¨-0.5t

Servicing of chemical de-icing systems, SERVICING OF CHEMICAL DE-ICING SYST...

SERVICING OF CHEMICAL DE-ICING SYSTEMS: It is essential for the correct operation of the ice protection system that servicing is carried out on a regular basis.  The fluids use

Numerical method, find the newton raphson iterative formula for a reciproca...

find the newton raphson iterative formula for a reciprocal of a number N and hence find the value of 1/23.correct to 5 place of decimal

Susceptibility - fire safety management, Susceptibility: Susceptibilit...

Susceptibility: Susceptibility to products of combustion, which includes metabolism, lung capacity, pulmonary disease, allergies, or other physical limitations that affect sur

Uncertainty propagation, Uncertainty propagation In order to calculate ...

Uncertainty propagation In order to calculate the error of a quantity derived from a mathematical formula which has measured variables with errors, one should use the uncertain

What is inflation?, What Is Inflation? In economic terms, blowing up is ...

What Is Inflation? In economic terms, blowing up is the development of the costs of products or solutions in the given economic climate over a time period. As the costs increase

Fuel control in aircraft engine, Fuel control in Aircraft Engine: ...

Fuel control in Aircraft Engine: The basic fuel system is comprised of a fuel pump that receives low-pressure fuel from the aircraft fuel tank via a low pressure fuel valv

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