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: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #50124] cplxpair produces incorrect result for second column of complex pairs
Date: Fri, 27 Jan 2017 03:42:14 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0

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

Re: Comment #7

Matlab 2016b:

>> z = [1 + 0.5i; 1; 1-0.49i]
cplxpair (z, 1e14)

z =

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

Error using cplxpair (line 41)
Relative tolerance TOL must be a scalar such that 0<=TOL<1.
 
>> cplxpair (z, 1)
Error using cplxpair (line 41)
Relative tolerance TOL must be a scalar such that 0<=TOL<1.
 
>> cplxpair (z, 1-eps)

ans =

     1
     1
     1


    _______________________________________________________

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]