[
https://issues.apache.org/jira/browse/MATH-740?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13253421#comment-13253421
]
Ismael Juma commented on MATH-740:
----------------------------------
Thomas, you cannot trust what you see in java.lang.Math. Many of those methods
are HotSpot intrinsics and consist of optimised assembly code. Examples are
sin, cos, tan, exp, log, sqrt, atan2 and so on.
> Some "FastMath" functions are slow
> ----------------------------------
>
> Key: MATH-740
> URL: https://issues.apache.org/jira/browse/MATH-740
> Project: Commons Math
> Issue Type: Wish
> Reporter: Gilles
> Priority: Minor
> Fix For: 3.1
>
>
> From the two benchmarks we currently have in "FastMathTestPerfomance", we
> have that the following functions are much slower in "FastMath" than in
> either "Math" or "StrictMath" (the performance *loss*, for each of the
> benchmarks, is given in parentheses):
> * log10 (46%, 36%)
> * log1p (68%, 112%)
> * tan (11%, 61%)
> * atan (26%, 125%)
> * atan2 (44%, 40%)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira