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

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

[Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for


From: Bill Lash
Subject: [Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for second column of complex pairs
Date: Fri, 27 Jan 2017 01:53:42 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:50.0) Gecko/20100101 Firefox/50.0

Follow-up Comment #11, bug #50124 (project octave):

is this a recent change in behavior for octave?  With 4.0.3 I see:


>> z = [1 + 0.5i; 1; 1-0.49i]
z =

   1.0000 + 0.5000i
   1.0000 + 0.0000i
   1.0000 - 0.4900i

>> cplxpair (z, 1e14)
ans =

   1.0000 + 0.5000i
   1.0000 + 0.0000i
   1.0000 - 0.4900i

>> cplxpair (z, 0.1)
ans =

   1.0000 - 0.4900i
   1.0000 + 0.5000i
   1.0000 + 0.0000i


So for 4.0.3 it looks like cplxpair is comparing to tol*abs(z).

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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