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

Sebb commented on MATH-478:
---------------------------

Java 1.6 introduces the following to StrictMath

double java.lang.StrictMath.scalb(double,int)
float java.lang.StrictMath.scalb(float,int)
int java.lang.StrictMath.getExponent(float)
int java.lang.StrictMath.getExponent(double)
double java.lang.StrictMath.copySign(double,double)
float java.lang.StrictMath.copySign(float,float)

Also
float java.lang.StrictMath.nextAfter(float,double)
which seems to have been introduced instead of one taking two float parameters.
Given that the widening the direction does not really affect the behaviour, we 
should probably change to the same signature.



> 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.

Reply via email to