bugGNU Octave - Bugs: bug #53452, Max and Min function producing...


bug #53452: Max and Min function producing same result.Should follow a convention.

Submitted by:  Dildar Sk <hodor123456>
Submitted on:  Sat 24 Mar 2018 11:44:26 AM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Dildar Sk Open/Closed:  Closed
Release:  dev Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Tue 27 Mar 2018 10:25:14 PM UTC, comment #2: 

This is a duplicate of bug #51307. The bug is specifically that the two-argument form of max and min on complex arguments with equal magnitudes depends on the order of the arguments. In fact there is already a test in the test suite for this known bug.

Mike Miller <mtmiller>
Project Administrator
Tue 27 Mar 2018 07:32:06 PM UTC, comment #1: 

This issue has been discussed many times.  Did you read any of those discussions?  It seems bad to me if the comparison operators <, <=, >, >= behave differently from min and max.

John W. Eaton <jwe>
Project Administrator
Sat 24 Mar 2018 11:44:26 AM UTC, original submission:  


>> max(5,5i)

ans =

   0.0000 + 5.0000i

>> min(5,5i)

ans =


In GNU Octave,

>> max(5,5i)
ans =  5
>> min(5,5i)
ans =  5

So,in Octave how is possible! It producing same result.
There were some debate about comparison of complex values.
I think to keep MATLAB compatibility it should follow MATLAB

Dildar Sk <hodor123456>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by hodor123456 (Submitted the item)
  • -email is unavailable- added by hodor123456

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.




    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-27 mtmiller StatusNone => Duplicate
        Open/ClosedOpen => Closed
        Dependencies- => Depends on bugs #51307
    2018-03-24 hodor123456 Carbon-Copy- => Added dildarsk101010@gmail.com

    Back to the top

    Powered by Savane 3.7