bugGNU Octave - Bugs: bug #53011, Documentation of sort and...

 
 

bug #53011: Documentation of sort and comparison operators

Submitted by:  Michael Leitner <mleitner>
Submitted on:  Tue 30 Jan 2018 10:22:07 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Documentation
Status: NoneAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.2.1Operating System: Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Tue 30 Jan 2018 10:22:07 AM UTC, original submission:

I am splitting up bug #52919. First the smallest issue, that I called a buglet there:

According to the documentation of sort: Sorting of complex entries is done first by magnitude ('abs (Z)') and for any ties by phase angle ('angle (z)'). However, consider the following code:

That is, all entries have the same length and thus should be sorted according to angle. But they are not due to inconsistent treating of +0i and -0i on the negative axis. This is due to the comparison on complex values:

As Rik noted in comment 14 of #52919, if in the comparison an angle of -pi appears, it is mapped to +pi. So this is a documentation bug for sort and the comparison operators, of course only of low priority.

Michael Leitner <mleitner>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by amro_octave
  • -unavailable- added by mleitner (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 02 Feb 2018 08:49:23 AM UTCamro_octaveCarbon-Copy-=>Added amro_octave

    Back to the top


    Powered by Savane 3.1-cleanup1