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

Vodeo transmission via laser, i want to make a project which is based on vi...

i want to make a project which is based on video transmission via laser ..please help me

Static unbalance-aircraft maintenance , Static Unbalance: This arises w...

Static Unbalance: This arises when two EQUAL unbalance masses are positioned at opposite ends of a rotor and spaced at 180 from each other. If placed on knife-edges, the rotor

General, why should an aircraft maintenance technician be familiar with wel...

why should an aircraft maintenance technician be familiar with weld nomenclature

Mine ventilation assignment, Describe the method of undertaking an anemomet...

Describe the method of undertaking an anemometer traverse for a airflow

Finance, Let C(K) denote a European vanilla Call option with strike price K...

Let C(K) denote a European vanilla Call option with strike price K. Assume that all options are identical except for strike price, and strike prices satisfy (K1) What are the no-

Installing aircraft parts, Installing Aircraft Parts: Prior to fit remo...

Installing Aircraft Parts: Prior to fit remove the label from the engine and attach it to the paperwork for safekeeping. Check the engine over to ensure it is complete and chec

Thermodynamics.., Steam enters in the turbine at 6 MPa and 450 deg C and ex...

Steam enters in the turbine at 6 MPa and 450 deg C and expands at some intermediate pressure 60 % of steam is extracted and remainder expands to 10 kPa at this Investigate the effe

#title.graphics, draw diagonal scale of rf 1/500 and show 57.5m on it

draw diagonal scale of rf 1/500 and show 57.5m on it

Blade twist - aircraft engine, BLADE TWIST: Rotational velocity and its...

BLADE TWIST: Rotational velocity and its effect on the Angle of Attack depends on the radius of the blade element in question. A blade element near the blade root (hub) will h

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