diff options
| author | Stefan van der Walt <stefan@sun.ac.za> | 2007-02-09 17:34:23 +0000 |
|---|---|---|
| committer | Stefan van der Walt <stefan@sun.ac.za> | 2007-02-09 17:34:23 +0000 |
| commit | e7a51c37517f0fc62624c7e8e40d63ba416d096d (patch) | |
| tree | bb75d6d592b9808403d87ae2e6e1ef493ba5dc4a /numpy/lib | |
| parent | a3237e0acf426698b4c08e0d107095ab11cb13a8 (diff) | |
| download | numpy-e7a51c37517f0fc62624c7e8e40d63ba416d096d.tar.gz | |
Fix polymul bug.
Diffstat (limited to 'numpy/lib')
| -rw-r--r-- | numpy/lib/polynomial.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index ca61e34a3..f8bc1f693 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -383,6 +383,7 @@ def polymul(a1, a2): """Multiplies two polynomials represented as sequences. """ truepoly = (isinstance(a1, poly1d) or isinstance(a2, poly1d)) + a1,a2 = poly1d(a1),poly1d(a2) val = NX.convolve(a1, a2) if truepoly: val = poly1d(val) |
