Uploaded image for project: 'Commons Math'
  1. Commons Math
  2. MATH-620

multiplication of infinity

    XMLWordPrintableJSON

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?

      Attachments

        1. arne_tests.zip
          6 kB
          Arne Plöse
        2. arne_tests.zip
          2 kB
          Gilles Sadowski
        3. ComplexOctaveTest.java
          10 kB
          Arne Plöse

        Activity

          People

            Unassigned Unassigned
            aploese Arne Plöse
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: