diff options
author | jakobjakobson13 <43045863+jakobjakobson13@users.noreply.github.com> | 2020-08-18 06:29:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 21:29:02 -0700 |
commit | 0dc55882a976630d832ebebdb58350d9c26205fe (patch) | |
tree | 6cc0b98e946dee3725de77022de73784d5039386 /numpy/lib/polynomial.py | |
parent | 67c7066353534eeac8054f0deb75dc5923c6dc20 (diff) | |
download | numpy-0dc55882a976630d832ebebdb58350d9c26205fe.tar.gz |
BUG: fix typo in polydiv that prevented promotion to poly1d (#17053)
Fix bug caused by typo and added tests
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index 1c124cc0e..7b89eeb70 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -1017,7 +1017,7 @@ def polydiv(u, v): (array([1.5 , 1.75]), array([0.25])) """ - truepoly = (isinstance(u, poly1d) or isinstance(u, poly1d)) + truepoly = (isinstance(u, poly1d) or isinstance(v, poly1d)) u = atleast_1d(u) + 0.0 v = atleast_1d(v) + 0.0 # w has the common type |