Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4509BDD23 for ; Fri, 16 Nov 2012 17:10:13 +0000 (UTC) Received: (qmail 47881 invoked by uid 500); 16 Nov 2012 17:10:12 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 47674 invoked by uid 500); 16 Nov 2012 17:10:12 -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 47311 invoked by uid 99); 16 Nov 2012 17:10:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Nov 2012 17:10:12 +0000 Date: Fri, 16 Nov 2012 17:10:12 +0000 (UTC) From: "Konstantin Berlin (JIRA)" To: issues@commons.apache.org Message-ID: <1863010555.124613.1353085812190.JavaMail.jiratomcat@arcas> In-Reply-To: <990881746.124608.1353085694194.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (MATH-901) FastMath.sin is slow MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-901?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Konstantin Berlin updated MATH-901: ----------------------------------- Attachment: SineTest.java FastMath.java The described FastMath, with some functions removed for simplicity, and my test file. > FastMath.sin is slow > -------------------- > > Key: MATH-901 > URL: https://issues.apache.org/jira/browse/MATH-901 > Project: Commons Math > Issue Type: Bug > Affects Versions: 3.1 > Environment: Mac OS 10.8.2, Java 7 > Reporter: Konstantin Berlin > Attachments: FastMath.java, SineTest.java > > > The FastMath.sin (maybe other functions too) are not nearly as fast as some other libraries that can be found on the internet. > The *much* faster code can be found here http://www.oliford.co.uk/phys/code/AlgorithmRepository/src/jafama/. > Max Absolute Error Apache vs JDK: 1.1102230246251565E-16 > Max Absolute Error Alternative vs JDK: 5.551115123125783E-16 > JDK Time: 0.698 > Apache Time: 0.491 > Alternative Time: 0.18 > I will add my test code as soon as I figure out how. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira