[
https://issues.apache.org/jira/browse/MATH-478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984440#action_12984440
]
Luc Maisonobe commented on MATH-478:
------------------------------------
The nextAfter(double, double) and nextUp(double) methods were added for
consistency with StrictMath on Java 1.6. Despite we do target 1.5, some users
may depend on these 1.6 methods so we provided them too.
The hyperbolic functions were added ... because I needed them. In fact, people
have asked them to be added in Java since years.
When we run the automated test you have added for mapping StrictMath vs.
FastMath in a java 1.6 environment, the test also identifies nextAfter(float,
float) and nextUp(float) as missing. I have added them. I have also fixed the
wrong behaviour of nextAfter(Double.NEGATIVE_INFINITY, 0) which was wrong.
I agree ALL StrictMathMethods should be available.
> FastMath is not an exact replacement for StrictMath
> ---------------------------------------------------
>
> Key: MATH-478
> URL: https://issues.apache.org/jira/browse/MATH-478
> Project: Commons Math
> Issue Type: Improvement
> Reporter: Sebb
>
> FastMath Javadoc says:
> "Faster, more accurate, portable alternative to StrictMath."
> However, it does not implement the following StrictMath methods:
> hypot(double, double)
> IEEEremainder(double, double)
> Nor the following, though it probably should:
> signum(float)
> ulp(float)
> FastMath implements the following additional methods:
> acosh(double)
> asinh(double)
> atanh(double)
> nextAfter(double, double)
> nextUp(double)
> I think this should be documented.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.