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

Complex - Issue with non-compliance to C99!

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Labels:
      None

      Description

      Complex z1, z2, z3;

      // assign values to the two complex numbers
      z1 = new Complex(1.0, 0.0);
      z2 = new Complex(Double.POSITIVE_INFINITY, Double.POSITIVE_INFINITY);

      // multiply the two complex numbers
      z3 = z1.multiply(z2);

      The result is that both the real and imaginary part of z3 are NaN. Isn't it somewhat desirable that both parts of the complex should be Infinity?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rlyon Richard Lyon
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: