Exercise ComputePI (Loop & Condition)

Compiled By Unknown - No Comments
Write a program called ComputePI to compute the value of π, using the following series expansion. You have to decide on the termination criterion used in the computation (such as the number of terms used or the magnitude of an additional term). Is this series suitable for computing π?
ComputePi



JDK maintains the value of π in a double constant called Math.PI. Compare the values obtained and the Math.PI, in percents of Math.PI.
For Hints on Computing PI visit Hints for Exercise ComputePI (Loop & Condition)

Tags:

No Comment to " Exercise ComputePI (Loop & Condition) "