[ 
https://issues.apache.org/jira/browse/MATH-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13501444#comment-13501444
 ] 

Thomas Neidhart commented on MATH-901:
--------------------------------------

Hi Jeff,

thanks for your feedback, I will create bug reports for the issues you reported.

I am also +1 on having an AccurateMath and a FastMath implementation with the 
following characteristics:

 * AccurateMath: being more accurate, and faster *if* possible than Math (more 
or less the current FastMath)
 * FastMath: being (considerably) faster with tradeoffs for accuracy (more or 
less the jodk FastMath)

What would be an acceptable loss of accuracy, opinions?

If we decide to do something like this, we should also add a specific page in 
the user guide, describing the differences with figures for performance and 
accuracy. Right now, FastMath is advertised as safe drop-in replacement to 
Math, but with two diverting implementations with different goals, users would 
need more guidance I guess.
                
> FastMath.sin is slow
> --------------------
>
>                 Key: MATH-901
>                 URL: https://issues.apache.org/jira/browse/MATH-901
>             Project: Commons Math
>          Issue Type: Sub-task
>    Affects Versions: 3.0
>         Environment: Mac OS 10.8.2, Java 7
>            Reporter: Konstantin Berlin
>         Attachments: 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

Reply via email to