commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <j...@apache.org>
Subject [jira] Updated: (MATH-483) FastMath does not handle all special cases correctly
Date Wed, 19 Jan 2011 12:36:44 GMT

     [ https://issues.apache.org/jira/browse/MATH-483?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sebb updated MATH-483:
----------------------

    Attachment:     (was: MATH-483-generic.patch)

> 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.1, 3.0
>            Reporter: Sebb
>         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.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message