[Scipy-tickets] [SciPy] #364: signal.residue causes crash whenever denominator has repeated roots

SciPy scipy-tickets at scipy.net
Wed Jan 31 02:12:56 CST 2007


#364: signal.residue causes crash whenever denominator has repeated roots
----------------------------------+-----------------------------------------
 Reporter:  kumanna               |        Owner:  somebody
     Type:  defect                |       Status:  new     
 Priority:  highest               |    Milestone:          
Component:  scipy.signal          |      Version:  0.5.2   
 Severity:  normal                |   Resolution:          
 Keywords:  signal residue crash  |  
----------------------------------+-----------------------------------------
Comment (by nils):

 I cannot reproduce the crash with 0.5.3.dev2656.

 {{{
 Traceback (most recent call last):
   File "test_signal.py", line 2, in ?
     signal.residue([1], [1, 2, 1])
   File "/usr/lib64/python2.4/site-packages/scipy/signal/signaltools.py",
 line 1056, in residue
     k,b = polydiv(b,a)
   File "/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py", line
 401, in polydiv
     q = NX.zeros((m-n+1,), float)
 ValueError: negative dimensions are not allowed
 >>> signal.residue([0, 1], [1, 2, 1])
 (array([ 0.+0.j,  1.+0.j]), array([-1.+0.j, -1.+0.j]), array([],
 dtype=float64))
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/scipy/ticket/364#comment:1>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list