octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #49900] cplxpair return error message where da


From: Henk Borsje
Subject: [Octave-bug-tracker] [bug #49900] cplxpair return error message where data seems good
Date: Wed, 21 Dec 2016 12:23:42 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

URL:
  <http://savannah.gnu.org/bugs/?49900>

                 Summary: cplxpair return error message where data seems good
                 Project: GNU Octave
            Submitted by: hjborsje
            Submitted on: Wed 21 Dec 2016 12:23:41 PM GMT
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Henk Borsje
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

With the following input arguments ML version of cplxpair returns valid
answers, Octave reports error

x = 

 -0.309016994374947 + 0.951056516295154i
 -0.809016994374947 + 0.587785252292473i
 -1.000000000000000 + 0.000000000000000i
 -0.809016994374947 - 0.587785252292473i
 -0.309016994374948 - 0.951056516295154i

tol =

     2.482534375291878e-09

Octave returns error in following lines:

      if (v > tol*eps (abs (z(i))))
        error ("cplxpair: could not pair all complex numbers");
      endif

ML returns:

 -0.809016994374947 - 0.587785252292473i
 -0.809016994374947 + 0.587785252292473i
 -0.309016994374947 - 0.951056516295154i
 -0.309016994374947 + 0.951056516295154i
 -1.000000000000000                     









    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?49900>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]