[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #34655] max(z, 0) where z is a complex vector
From: |
Alan E. Schoen |
Subject: |
[Octave-bug-tracker] [bug #34655] max(z, 0) where z is a complex vector is incorrect |
Date: |
Tue, 25 Oct 2011 23:29:01 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 5.1; rv:2.0) Gecko/20100101 Firefox/4.0 |
Follow-up Comment #2, bug #34655 (project octave):
z=[1.0+1.0i,-1.0+1.0i,1.0+1.0i]
x=max(z,0)
this should result in x being 1.0+1.0i,0.0+0.0i,1.0+1.0i
however, the negative second element persists
y=max(real(z),0) works as expected i.e. 1,0,1
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34655>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/