Calculate PI To Arbitrary Precision (Sample Java Code)

    Date: 11/13/07 (Java Web)    Keywords: java

    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. [...]

    Source: http://blog.taragana.com/index.php/archive/calculate-pi-to-arbitrary-precision-sample-java-code/

« Cartoon Network India Ben... || How To Resolve Tomcat -... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home