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

Arne Plöse commented on MATH-577:
---------------------------------

Maybe Im a little dumb, but why are Complex.add and Complex.subtract
differently implemented regarding NaN values?
subtract returns Complex.NaN if there is one of both NaN.


Am Mittwoch, den 13.07.2011, 14:47 +0000 schrieb Phil Steitz (JIRA): 
I only found your checkin of revision 280031 where you intoduced NaN in
equals, but cant find anything on commons-dev (maybe I got the wrong
keywords hashCode, equals)?





> Enhance Complex.java
> --------------------
>
>                 Key: MATH-577
>                 URL: https://issues.apache.org/jira/browse/MATH-577
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>            Reporter: Arne Plöse
>            Priority: Minor
>         Attachments: Complex.diff, Complex.diff
>
>
> Add some double shorthand methods to Complex fix different NaN checks in add 
> and subtract ! Testcase  testAddNaN will fail (what should be the result ?)
> What is missing JavaDoc and testcases.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to