bugGNU Octave - Bugs: bug #41820, control package: rlocus errors on...

 
 

bug #41820: control package: rlocus errors on input when max_k is not specified for some input

Submitter:  None
Submitted:  Mon 10 Mar 2014 01:36:52 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * other
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 14 Mar 2014 07:49:23 PM UTC, comment #6: 
Lukas Reichlin <paramaniac>
Mon 10 Mar 2014 09:47:39 PM UTC, comment #5: 

This change fixes it for me.
thanks

Doug Stewart <dastew>
Mon 10 Mar 2014 08:29:01 PM UTC, comment #4: 

Thanks for your reports! I've pushed the following changeset:

https://bitbucket.org/paramaniac/control/commits/71e2970cc8adb6773744dbc8f7b07f2f5dc6bad2

It solves the problem for me. Could you please test it and report whether there are any unexpected issues?

Cheers,
Lukas

Lukas Reichlin <paramaniac>
Mon 10 Mar 2014 02:44:47 AM UTC, comment #3: 

The problem seems to be in the repeated roots in the numerator
the following code would be a workaround until we get it fixed

 n=poly([  -2 -2.0001])
 d=[1 8 1 8 0]

roots(n)
roots(d)
ss1=tf(n,d)
ss1

 rlocus(ss1);

Doug Stewart <dastew>
Mon 10 Mar 2014 02:38:28 AM UTC, comment #2: 

Confirmed here as well, updating bug description and tags, rlocus is part of the control package.

Mike Miller <mtmiller>
Group Member
Mon 10 Mar 2014 02:21:09 AM UTC, comment #1: 

Confirmed in ubuntu 12.04 and octave 3.8.1-rc3

Doug Stewart <dastew>
Mon 10 Mar 2014 01:36:52 AM UTC, original submission:  

octave:63> rlocus(tf([1 4 4], [1 8 1 8 0]));
warning: division by zero
error: roots: inputs must not contain Inf or NaN
error: called from:
error:   /usr/share/octave/3.6.4/m/polynomial/roots.m at line 85, column 5
error: evaluating argument list element number 1
error: evaluating argument list element number 1
error:   /usr/share/octave/packages/control-2.4.3/rlocus.m at line 173, column 23

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by paramaniac (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by dastew (Posted a comment)
  •  

    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 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-05-31 mtmiller StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2014-03-10 paramaniac Carbon-CopyRemoved paramaniac -
    2014-03-10 paramaniac Carbon-Copy- Added paramaniac
    2014-03-10 mtmiller CategoryLibraries Octave Package
        Item GroupNone Incorrect Result
        StatusNone Confirmed
        Release3.6.4 other
        Operating SystemGNU/Linux Any
        Summaryrlocus crashes on input when max_k is not specified for some input control package: rlocus errors on input when max_k is not specified for some input

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code