Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
3.0
-
None
-
None
-
None
Description
Take the following testcase
Assert.assertEquals(neginf, inf* neginf, Double.MIN_VALUE); // <--Passes ordinary double Assert.assertEquals(new Complex(neginf, 0), new Complex(inf, 0).multiply(new Complex(neginf, 0)));// <-- Fail only real parts no imaginary parts
The outcome of multiply is Complex.INF if one part is infinity.
why not simply compute the multiplication and thats is?