Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 31705 invoked from network); 10 Sep 2010 21:23:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Sep 2010 21:23:51 -0000 Received: (qmail 44456 invoked by uid 500); 10 Sep 2010 21:23:51 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 44382 invoked by uid 500); 10 Sep 2010 21:23:50 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 44375 invoked by uid 99); 10 Sep 2010 21:23:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 21:23:50 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Sep 2010 21:23:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id DB41A23889ED; Fri, 10 Sep 2010 21:23:26 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r995986 - /commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/DfpField.java Date: Fri, 10 Sep 2010 21:23:26 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100910212326.DB41A23889ED@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: luc Date: Fri Sep 10 21:23:25 2010 New Revision: 995986 URL: http://svn.apache.org/viewvc?rev=995986&view=rev Log: Use Jonathan and Peter Borwein quartic formula to compute PI, it is MUCH faster than the previous one especially for large numbers of digits and allows quicker loading of the class. It was tested to compute about 10000 decimal digits, just for the fun Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/DfpField.java Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/DfpField.java URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/DfpField.java?rev=995986&r1=995985&r2=995986&view=diff ============================================================================== --- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/DfpField.java (original) +++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/DfpField.java Fri Sep 10 21:23:25 2010 @@ -592,7 +592,7 @@ public class DfpField implements Field