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

Genetic algorithm procedure, Genetic Algorithm Procedure Generate a ...

Genetic Algorithm Procedure Generate a "pool" of "genes" randomly These genes are then "mated" to produce the "mated" to produce the next generation Best genes have a

Fire safety management for commercial buildings, fire safety management for...

fire safety management for Commercial buildings: Commercial buildings where all the occupants are familiar with the building we also need to see evidence of satisfactory fire

Inspecting a sprinkler systems, Inspecting a Sprinkler Systems: When i...

Inspecting a Sprinkler Systems: When inspecting a building that has sprinklers fitted it is not easy to check that the correct water pressure and flow rate can be achieved by

Laurent polynomial, how to perform division of two laurent polynomials?

how to perform division of two laurent polynomials?

Working of i.c. engine, WORKING OF I.C. ENGINE Basically there are 2 ty...

WORKING OF I.C. ENGINE Basically there are 2 types of internal combustion engines; the two stoke type and the 4-stroke type. A brief description of these is given below: 1.

New building completion - fire safety management, Ne w building completion...

Ne w building completion: New buildings have to be constructed to meet certain fire safety standards.  It is not acceptable for buildings to be built that do not attain a min

Propeller efficiency, PROPELLER EFFICIENCY: The propeller is 80 - 87% e...

PROPELLER EFFICIENCY: The propeller is 80 - 87% efficient up to approximately 400 mph.  Generally, beyond this performance will fall off, although new materials and improved bl

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