bugGNU Octave - Bugs: bug #38855, roots([0,0]) is error in Octave,...

 
 

bug #38855: roots([0,0]) is error in Octave, empty matrix in Matlab

Submitter:  Richard <crobar>
Submitted:  Mon 29 Apr 2013 06:06:13 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Fixed Assigned to:  None
Originator Name:  Richard Crozier Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 18 Jun 2013 01:08:27 AM UTC, comment #2: 

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/80b9a9e1c965).  The change was on the development branch so you will need to build from Mercurial sources or wait for the next stable release to see the fix.

Rik <rik5>
Group administrator
Mon 29 Apr 2013 06:33:21 PM UTC, comment #1: 

According to matlab's help for roots, leading zeros in the vector of poly coefficients are discarded before computing the roots.

Richard <crobar>
Mon 29 Apr 2013 06:06:13 PM UTC, original submission:  

Octave (on the classdef branch):


>> roots([0,0])
warning: division by zero
warning: division by zero
error: eig: EIG: matrix contains Inf or NaN values
error: called from:
error:   /usr/local/share/octave/3.7.3+/m/polynomial/roots.m at line 104, column 5


Matlab R2012a


>> roots([0,0])

ans =

   Empty matrix: 0-by-1


Richard <crobar>

 

(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 rik5 (Posted a comment)
  • -email is unavailable- added by crobar (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-06-18 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code