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

Quality assurance and accreditation, how can i link quality assurance and a...

how can i link quality assurance and accreditation with a valid applicaion of my own work?

Airflow through divergent and convergent ducts, DIVERGENT DUCT A divergen...

DIVERGENT DUCT A divergent duct widens out as the airflow progresses through it. At subsonic speeds the effect of this kind of duct is to decrease the velocity and increase the p

Nicol Prism., Explain the construction of nicol prism and its function.

Explain the construction of nicol prism and its function.

Rotating Equipment, #What are the types of pumps used in oil industry? How...

#What are the types of pumps used in oil industry? How to perform fault finding report?

Masonry dams with trapezoidal cross section, How to calculate the depth of ...

How to calculate the depth of a masonry dam of trapezoidal cross section with height of 24ft,2ft top width,,12 ft base width and weight of concrete 150 lb/ft^3.The resultant pressu

TANGENT GALVANOMETER, WHY THE NEEDLE OF TANGENT GALVANOMETER DEFLECT WITH I...

WHY THE NEEDLE OF TANGENT GALVANOMETER DEFLECT WITH INCREASING OR DECREASING CURRENT?

Fabric types - woven rovings , The terms roving and yarn are widely used. A...

The terms roving and yarn are widely used. A roving is a collection of untwisted strands wound together. A yarn is a generic term for a continuous strand of textile fibres, filamen

Heat exchanger designing, How to design heat exchanger project from aromati...

How to design heat exchanger project from aromatics from shale gas transport phenomena, CHE 306

Gas turbine fuel properties - aircraft design, Gas turbine fuel properties ...

Gas turbine fuel properties and specification In the earliest days of the gas turbine engine, kerosene was regarded as the most suitable fuel. It commended itself on the grounds

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