octave-maintainers
[Top][All Lists]
Advanced

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

Re: Sorting complex values


From: Daniel J Sebald
Subject: Re: Sorting complex values
Date: Sat, 27 Sep 2014 22:05:31 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 09/27/2014 08:07 PM, Rik wrote:
On 09/27/2014 02:02 PM, Daniel J Sebald wrote:

[snip]

Should I file a bug report?


Yes, probably best to have a record of this.  I'm sure the problem is that
the equality comparison '==' is done in rectangular form so x1 + iy1 == x2
+iy2 is done by x1 == x2&&  y1 == y2.  But -0 == 0 so the two are equal.
the relational operators used for sorting '<' and'>' compare values in
polar form where the different phase angle is important.

Done.

https://savannah.gnu.org/bugs/index.php?43313

Dan



reply via email to

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