[Numpy-tickets] [NumPy] #554: poly1d equate error
NumPy
numpy-tickets@scipy....
Mon Jul 23 20:52:09 CDT 2007
#554: poly1d equate error
-----------------------+----------------------------------------------------
Reporter: DrIdiot | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: numpy.lib | Version: none
Severity: normal | Keywords: poly1d
-----------------------+----------------------------------------------------
When I try to see if two polynomials are equal, I get an error:
In [13]: numpy.poly1d([1, 1, 1, 1,0,1]) == numpy.poly1d([1,0])
---------------------------------------------------------------------------
exceptions.AttributeError Traceback (most
recent call last)
/home/harrison/<console>
/usr/lib/python2.4/site-packages/numpy/lib/polynomial.py in __eq__(self,
other)
601
602 def __eq__(self, other):
--> 603 return (self.coeffs == other.coeffs).all()
604
605 def __ne__(self, other):
I am running Gentoo with numpy 1.0.3
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/554>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list