[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: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #34655] max(z, 0) where z is a complex vector is incorrect |
Date: |
Tue, 25 Oct 2011 23:55:37 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:5.0) Gecko/20100101 Firefox/5.0 |
Update of bug #34655 (project octave):
Status: Need Info => Invalid
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #3:
The documentation string for max () explains what is being calculated. Try
'help max'. Quoting from the documentation "For complex arguments, the
magnitude of the elements are used for comparison."
In this case, the magnitude, i.e., length in the plane are all greater than
zero and so each value, including complex numbers with negative real parts,
are returned.
Matlab behaves the same way
(http://www.mathworks.com/help/techdoc/ref/max.html). I think you need to
modify the script in question to have it do what you want.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?34655>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/