[Numpy-tickets] [NumPy] #553: poly1d division error
NumPy
numpy-tickets@scipy....
Mon Jul 23 19:51:55 CDT 2007
#553: poly1d division error
-----------------------+----------------------------------------------------
Reporter: DrIdiot | Owner: somebody
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: numpy.lib | Version: none
Severity: normal | Resolution:
Keywords: poly1d |
-----------------------+----------------------------------------------------
Changes (by DrIdiot):
* status: closed => reopened
* resolution: invalid =>
Comment:
I'm sorry I copied the wrong line.
In [7]: numpy.polydiv(numpy.poly1d([1,2,3]), numpy.poly1d([1,2,3,4,5]))
---------------------------------------------------------------------------
exceptions.ValueError Traceback (most
recent call last)
/home/harrison/<console>
/usr/lib/python2.4/site-packages/numpy/lib/polynomial.py in polydiv(u, v)
401 n = len(v) - 1
402 scale = 1. / v[0]
--> 403 q = NX.zeros((m-n+1,), float)
404 r = u.copy()
405 for k in range(0, m-n+1):
ValueError: negative dimensions are not allowed
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/553#comment:2>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list