Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 54096 invoked from network); 8 Jun 2010 23:31:36 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jun 2010 23:31:36 -0000 Received: (qmail 15925 invoked by uid 500); 8 Jun 2010 23:31:36 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 15846 invoked by uid 500); 8 Jun 2010 23:31:35 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 15838 invoked by uid 99); 8 Jun 2010 23:31:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 23:31:35 +0000 X-ASF-Spam-Status: No, hits=-1507.2 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jun 2010 23:31:35 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o58NVESC006751 for ; Tue, 8 Jun 2010 23:31:14 GMT Message-ID: <1778901.36541276039874634.JavaMail.jira@thor> Date: Tue, 8 Jun 2010 19:31:14 -0400 (EDT) From: "William Rossi (JIRA)" To: issues@commons.apache.org Subject: [jira] Updated: (MATH-375) Elementary functions in JDK are slower than necessary and not as accurate as they could be. In-Reply-To: <25525697.36411276039695053.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-375?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:all-tabpanel ] William Rossi updated MATH-375: ------------------------------- Attachment: FastMath.tar.gz Description of files in the archive: FastMath.java The software itself FastMathTest.java TestNG test case remez/ Utilities for generating coefficients= of the polynomials used in the software remez/lib/dfp10.jar High precision fp lib used for testing, from d= fp.sourceforge.net > Elementary functions in JDK are slower than necessary and not as accurate= as they could be. > -------------------------------------------------------------------------= ------------------ > > Key: MATH-375 > URL: https://issues.apache.org/jira/browse/MATH-375 > Project: Commons Math > Issue Type: New Feature > Environment: JDK 1.4 - 1.6 > Reporter: William Rossi > Attachments: FastMath.tar.gz > > > I would like to contribute improved versions on exp(), log(), pow(), etc.= to the project. Please refer to this discussion thread http://markmail.o= rg/message/zyeoguw6gwtofm62. > I have developed over the past year a set of elementary functions similar= to those in java.lang.Math, but with the following characteristics: > * Higher performance. > * Better accuracy. Results are accurate to slightly more that +/- 0.5 UL= P. > * Pure Java. The standard Math class is impleneted via JNI, and thus tak= es a performance hit. > Note that some functions such as exp are nearly twice as fast in my imple= mentation. =C2=A0 I've seen it 3 times faster on different processors. =C2= =A0 The preformance varies by the relative speed of calculation vs memory l= ookups. > The functions are implemented as tables of values in extra precision (app= rox 70 bits), and then interpolated with a minimax polynomial. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.