diff options
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index b35926900..6964277a3 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -641,6 +641,9 @@ class poly1d(object): self.__dict__['coeffs'][ind] = val return + def __iter__(self): + return iter(self.coeffs) + def integ(self, m=1, k=0): """Return the mth analytical integral of this polynomial. See the documentation for polyint. |