commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arne Plöse (JIRA) <j...@apache.org>
Subject [jira] [Commented] (MATH-577) Enhance Complex.java
Date Thu, 14 Jul 2011 09:03:00 GMT

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

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

If you compare them this way:
{code]
final Complex cA = new Complex(a, 0);
final Complex cB = new Complex(b, 0);

        
Assert.assertEquals("a == b", a, b, Double.MIN_VALUE); // <-- Passes
Assert.assertEquals("cA == cB", cA, cB); // <-- Passes
{code}

It will be fine ... ;-)





> 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

       

Mime
View raw message