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

Aerodynamics-boundary layers, Approach The Hanley solver does solve for ...

Approach The Hanley solver does solve for the boundary layer and potential flow (in a way we will think about later). However, it only gives us full access to the potential solu

Heat capacity, Specific heat capacity of water in a continues flow method?

Specific heat capacity of water in a continues flow method?

Parasitic resistances, Parasitic resistances This is particularly notic...

Parasitic resistances This is particularly noticeable if the transducer is a long way from where the power supply is located and if the transducer resistance is small.

Common faults - fire safety management, Common faults - Fire safety managem...

Common faults - Fire safety management: Common faults found are: Combustible items left in protected routes Locked exits Fire doors wedged open Exits obstru

Vehicle kinematics, x(t)=integration((Vx(t)+Vy(t))/2*cos(theta)dt) where Vx...

x(t)=integration((Vx(t)+Vy(t))/2*cos(theta)dt) where Vx, Vy and theta is a function of t I am getting problem with how to write it down in matlab in order to get the position x.

Slipstream effect - propeller, Slipstream Effect. In passing through th...

Slipstream Effect. In passing through the propeller the air is accelerated and given a rotational velocity. The parts of the aircraft that are in the propeller slipstream wi

Use of a microprocessor and a microcontroller, Question: a) Differenti...

Question: a) Differentiate between the prime use of a microprocessor and a microcontroller. b) Describe why the design approach of the microcontroller must mirror that of t

Principles of finance, "Suppose an investor acquired 1 Round lot of Walden ...

"Suppose an investor acquired 1 Round lot of Walden stock at $30/share last year. If the investor received a $1.00 per share dividend during the year and sells the shares at year-e

Java, write a program for remote procedure call using java

write a program for remote procedure call using java

Cro, derive the expression of deflection of beam in CRO

derive the expression of deflection of beam in CRO

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