[Scipy-tickets] [SciPy] #371: signal.residue fails when len(b) < len(a)

SciPy scipy-tickets@scipy....
Wed Feb 14 16:40:05 CST 2007


#371: signal.residue fails when len(b) < len(a)
----------------------------+-----------------------------------------------
 Reporter:  ryankrauss      |        Owner:  somebody
     Type:  defect          |       Status:  new     
 Priority:  normal          |    Milestone:          
Component:  scipy.signal    |      Version:  0.5.2   
 Severity:  normal          |   Resolution:          
 Keywords:  signal residue  |  
----------------------------+-----------------------------------------------
Comment (by ryankrauss):

 Here is my diff of the old and new signaltools.py:

 19d18
 <
 1057,1061c1056
 <     rscale = a[0]
 <     if len(b)<len(a):
 <         k=[]
 <     else:
 <         k,b = polydiv(b,a)
 ---
 >     k,b = polydiv(b,a)
 1091c1086
 <     return r/rscale, p, k
 ---
 >     return r, p, k

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


More information about the Scipy-tickets mailing list