Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 75707 invoked from network); 11 May 2010 10:17:04 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 May 2010 10:17:04 -0000 Received: (qmail 77039 invoked by uid 500); 11 May 2010 10:17:04 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 76800 invoked by uid 500); 11 May 2010 10:17:04 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 76792 invoked by uid 99); 11 May 2010 10:17:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 10:17:03 +0000 X-ASF-Spam-Status: No, hits=-1412.7 required=10.0 tests=ALL_TRUSTED,AWL X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 May 2010 10:17:02 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4BAGgH5005723 for ; Tue, 11 May 2010 10:16:42 GMT Message-ID: <3852448.2401273573002109.JavaMail.jira@thor> Date: Tue, 11 May 2010 06:16:42 -0400 (EDT) From: "Phil Steitz (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (MATH-370) NaN in "equals" methods In-Reply-To: <28688760.29921273232028239.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MATH-370?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12866120#action_12866120 ] Phil Steitz commented on MATH-370: ---------------------------------- I am fine with deprecating and changing the name of MathUtils.equals(double, double) to "equalsIncludingNaN" or "equalsN". I see no reason to change the names or modify the behavior of any of the other equals methods in MathUtils. > 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.