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

Financial management, Explain and identify the different sources of finance...

Explain and identify the different sources of finances which are available to businesses and which sources of finance are internal sources and which are external sources?

Compressibility fluid -aircraft maintenance, Compressibility Fluid: Com...

Compressibility Fluid: Compressible fluid flow refers to the air flow through a gas turbine engine and, because the air is compressible, flow at subsonic speeds causes a change

What is the company’s net working capital, Working capital: Laurel Electron...

Working capital: Laurel Electronics reported the following information at its annual meetings. The company had cash and marketable securities worth $1,235,455, accounts payables wo

Meer, write drawback of linear array

write drawback of linear array

Rapid Prototyping, Give justification towards the development of Rapid Prot...

Give justification towards the development of Rapid Prototyping?

Geology, write and explain the different geophysical methods

write and explain the different geophysical methods

Mos ic-s, MOS IC-S: Not all IC's are constructed using bipolar componen...

MOS IC-S: Not all IC's are constructed using bipolar components, IC's are often designed to utilize either bipolar transistors or "Field-Effect transistors" (FETS).  The Field

#tmjjlitle.., Industries that manufacture racing cars prefers nickel based ...

Industries that manufacture racing cars prefers nickel based alloys for engine components and iron based alloys for structural parts. Justify this statement.

Programming of 18F4550, #include org 0xoo movlw 0x00 ---------- movlw 0xff ...

#include org 0xoo movlw 0x00 ---------- movlw 0xff movwf PORTB end

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