From bug-octave-request at bevo dot che dot wisc dot edu Fri Feb 22 21:03:26 2002 Subject: arg(double) patch From: "John W. Eaton" To: Paul Kienzle Cc: bug-octave at bevo dot che dot wisc dot edu Date: Fri, 22 Feb 2002 21:03:21 -0600 On 22-Jan-2002, Paul Kienzle wrote: | I'm including a patch to lo-mappers so that | Y=arg(X) | will match | for i=1:length(x) | Y(i)=arg(X(i)); | end | even if X contains signed zeros. | | Test with: | | x=[0+0i, 0-0i, -0+0i, -0-0i, 1i, NaN+0i, NaN-0i,NaN*1i]; | y=x; for i=1:length(y), y(i)=arg(y(i)); end | [x;y;arg(x)].' I applied your patch for this problem. Thanks, jwe ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------