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

Phil Steitz commented on MATH-370:
----------------------------------

I use the equals method and the array version in some of my  code that uses 
[math] (pretty much the same basic use case as above) and I suspect it is 
possible that other users do as well, so I would prefer to keep a renamed 
version of it available publicly, if consensus is we need to rename it.  The 
fact that it is defined at all should be a flag to users that there is 
something different going on, at least in the <double, double> case.  Note that 
the <double, double, double> and <double, double, int> versions are also 
"different" from the JDK; but there is no possibility for confusion of intent 
for them.

> NaN in "equals" methods
> -----------------------
>
>                 Key: MATH-370
>                 URL: https://issues.apache.org/jira/browse/MATH-370
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Gilles
>            Priority: Minor
>
> In "MathUtils", some "equals" methods will return true if both argument are 
> NaN.
> Unless I'm mistaken, this contradicts the IEEE standard.
> If nobody objects, I'm going to make the changes.

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