bugGNU Octave - Bugs: bug #52030, cplxpair returns incorrect result

 
 

bug #52030: cplxpair returns incorrect result

Submitted by:  Henk Borsje <hjborsje>
Submitted on:  Fri 15 Sep 2017 08:47:39 AM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Henk BorsjeOpen/Closed: Closed
Release: 4.2.1Operating System: Microsoft Windows

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Fri 15 Sep 2017 03:29:49 PM UTC, comment #3:

This has been fixed on the dev branch. See this cset

Since this is just an m-file, you can download the latest copy of it from the Mercurial repository and place it in your installation. Or you can wait until the next major release of Octave (4.4.0) which will include this patch.

Rik <rik5>
Project Administrator
Fri 15 Sep 2017 10:40:21 AM UTC, comment #2:

Fixed in current dev system

Michael Godfrey <godfrey>
Project Member
Fri 15 Sep 2017 10:37:18 AM UTC, comment #1:

It works for me
ans = -1
Ubuntu and dev branch

Doug Stewart <dastew>
Fri 15 Sep 2017 08:47:39 AM UTC, original submission:

z = -1.0000e+000 + 1.2246e-016i
tol = 2.2204e-10

>> cplxpair(z,tol)


MATLAB returns -1, Octave stops with the error

error: cplxpair: could not pair all complex numbers
error: called from
cplxpair at line 114 column 9

This combination of arguments came up during the generation of a Butterworth filter.

This seems to be a different bug from the tolerance incorrect units one, that did get fixed.

Henk Borsje

Henk Borsje <hjborsje>

 

(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 rik5 (Posted a comment)
  • -unavailable- added by godfrey (Posted a comment)
  • -unavailable- added by dastew (Posted a comment)
  • -unavailable- added by hjborsje (Submitted the item)
  • -unavailable- added by hjborsje
  •  

    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):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 15 Sep 2017 03:29:49 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Fri 15 Sep 2017 08:47:39 AM UTChjborsjeCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1