You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Luc Maisonobe (JIRA)" <ji...@apache.org> on 2011/03/23 21:35:06 UTC
[jira] [Closed] (MATH-483) FastMath does not handle all special
cases correctly
[ https://issues.apache.org/jira/browse/MATH-483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Luc Maisonobe closed MATH-483.
------------------------------
Closing issue as it was included in version 2.2, which has been released
> FastMath does not handle all special cases correctly
> ----------------------------------------------------
>
> Key: MATH-483
> URL: https://issues.apache.org/jira/browse/MATH-483
> Project: Commons Math
> Issue Type: Bug
> Affects Versions: 2.2, 3.0
> Reporter: Sebb
> Fix For: 2.2, 3.0
>
> Attachments: MATH-483-generic.patch, MATH-483.patch
>
>
> FastMath has some issues with special cases such as +0.0 and -0.0.
> Here are the double cases so far found:
> abs(-0.0) expected:<0.0> but was:<-0.0>
> signum(-0.0) expected:<-0.0> but was:<0.0>
> asin(-0.0) expected:<-0.0> but was:<0.0>
> atan(-0.0) expected:<-0.0> but was:<0.0>
> log10(-0.0) expected:<-Infinity> but was:<NaN>
> toDegrees(-0.0) expected:<-0.0> but was:<0.0>
> toRadians(-0.0) expected:<-0.0> but was:<0.0>
> ulp(-Infinity) expected:<Infinity> but was:<NaN>
> And float cases:
> abs(-0.0) expected:<0.0> but was:<-0.0>
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira