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

Matlab codes for extended kalman filter, I would like to have simple matlab...

I would like to have simple matlab codes for measuring the changes in amplitude and frequency of pure sinusoidal signal in a disturbed environment and subsequently to show the resu

Propeller pitch control, Propeller pitch control: Before looking at pro...

Propeller pitch control: Before looking at propeller pitch control an understanding of the relationship between the 'Power Lever' and the 'RPM (condition / speed) Lever' with r

Internal rate of return: multiple alternatives, Internal Rate of Return: Mu...

Internal Rate of Return: Multiple Alternatives To compare multiple alternatives using the IRR as measure of economic worth we must use the incremental approach. It is erroneou

Cash flow diagrams, Cash Flow Diagrams We will use a cash flow approac...

Cash Flow Diagrams We will use a cash flow approach to analyze the flow of money through out a planning horizon. A cash flow occurs when money actually change hands. We will u

Naked short selling, are retail investors or traders permitted to naked sho...

are retail investors or traders permitted to naked short a stock? who is permitted to naked short a stock assuming there has been no suspension of this practice and following the f

Fuels and lubrication technology, minimum mass of air required for complet...

minimum mass of air required for complete combustionof the HFO

Flames obtained in an oxyacetylene gas welding process, Q.  Describe the t...

Q.  Describe the types of flames obtained in an oxyacetylene gas welding process giving the applications. There are three types of flames in the gas welding on the base of the

Physical chemistry, can you answer some problem from physical chemistry wit...

can you answer some problem from physical chemistry with a detailed approach why and how one should choose the steps in solving them.These are just random question that I have no c

Embedded system, need it in 10 days time and in Australian cods if there is...

need it in 10 days time and in Australian cods if there is

Neutral points of a bar magnet , Fix a drawing paper on a drawing board wit...

Fix a drawing paper on a drawing board with help of drawing pins. Place a magnetic needle on the drawing paper to identify geographical north and south poles. Mark north, sou

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