bugGNU Octave - Bugs: bug #55862, error when using polynomial...

 
 

bug #55862: error when using polynomial function poly.m

Submitter:  None
Submitted:  Fri 08 Mar 2019 08:13:22 AM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  Duplicate Assigned to:  None
Originator Name:  Gerhard Doblinger Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 5.1.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 08 Mar 2019 03:43:59 PM UTC, comment #1: 

This was fixed in comment #17 in bug #53897.

Marco Caliari <caliari>
Group Member
Fri 08 Mar 2019 08:13:22 AM UTC, original submission:  

Checking of conjugate complex roots (in order to return real-valued results) fails in certain cases due to a logical comparison with == instead of isequal().
Reason: comparison with == requires (matrix) arguments of same dimension
Example:
[b,a] = cheby2(5,70,1/4)
works with version 4.x, fails with version 5.1.0

Solution:
replace
tmp = sort (v(imag (v) > 0)) == sort (conj (v(imag (v) < 0)));
with
tmp = isequal(sort (v(imag (v) > 0)), sort (conj (v(imag (v) < 0))));
in function poly.m


Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by caliari (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-08 mtmiller Open/ClosedOpen Closed
        Dependencies- Depends on bugs #53897
    2019-03-08 caliari StatusNone Duplicate

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code