Calculate PI To Arbitrary Precision (Sample Java Code)

Calculate PI To Arbitrary Precision (Sample Java Code)

Note: This article will be emailed to your friend.

Sample Java code to calculate PI to arbitrary precision. This uses Machin’s formula: pi/4 = 4*arctan(1/5) - arctan(1/239).

Notes:
1. Run Pi with a positive integer precision value. For example to calculate PI to 10 decimal places run:
java Pi 10
2. There are other algorithms and even better ones to calculate PI too. This is just an example. [...]

Read the rest of this article (372 words)

Please fill in the following fields

* - Required

Your Name: *

Your E-Mail: *

Your Remarks:

Friend's Name: *

Friend's E-Mail: *

Protected by Comment Guard Pro