[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #42301] '<' should be transitive for complex v
From: |
David Spies |
Subject: |
[Octave-bug-tracker] [bug #42301] '<' should be transitive for complex values |
Date: |
Mon, 05 May 2014 21:56:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:29.0) Gecko/20100101 Firefox/29.0 |
URL:
<http://savannah.gnu.org/bugs/?42301>
Summary: '<' should be transitive for complex values
Project: GNU Octave
Submitted by: dspyz
Submitted on: Mon 05 May 2014 09:56:46 PM GMT
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Matlab Compatibility
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: dev
Operating System: Any
_______________________________________________________
Details:
I can't figure out what rule octave uses to determine ordering among complex
values, but it's clearly not transitive
octave:19> 3i < -4
ans = 1
octave:20> -4 < 0
ans = 1
octave:21> 3i < 0
ans = 0
In Matlab, it throws out the imaginary part and just compares the real part:
>> 2 < i
ans =
0
>> i < 2
ans =
1
>> i < 0
ans =
0
>> 0 < i
ans =
0
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42301>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #42301] '<' should be transitive for complex values,
David Spies <=