diff options
author | cookedm <cookedm@localhost> | 2005-12-23 20:57:48 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2005-12-23 20:57:48 +0000 |
commit | 5c9620bdebb6eb98e3d58b9756419b68461f8b04 (patch) | |
tree | ba2f9280560967c9f8d0ca8d3393b01cc2c949d8 /scipy/base/tests/test_polynomial.py | |
parent | 540ddd3f45f502456c118def50fac5a0fc9f259a (diff) | |
download | numpy-5c9620bdebb6eb98e3d58b9756419b68461f8b04.tar.gz |
Fix polynomial division
Diffstat (limited to 'scipy/base/tests/test_polynomial.py')
-rw-r--r-- | scipy/base/tests/test_polynomial.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scipy/base/tests/test_polynomial.py b/scipy/base/tests/test_polynomial.py index 928306e32..421368e67 100644 --- a/scipy/base/tests/test_polynomial.py +++ b/scipy/base/tests/test_polynomial.py @@ -1,6 +1,6 @@ """ >>> import scipy.base as nx ->>> from scipy.base.polynomial import poly1d +>>> from scipy.base.polynomial import poly1d, polydiv >>> p = poly1d([1.,2,3]) >>> p @@ -27,7 +27,7 @@ poly1d([ 3., 2., 1.]) >>> p * q poly1d([ 3., 8., 14., 8., 3.]) >>> p / q -[poly1d([ 0.33333333]), poly1d([ 1.33333333, 2.66666667])] +(poly1d([ 0.33333333]), poly1d([ 1.33333333, 2.66666667])) >>> p + q poly1d([ 4., 4., 4.]) >>> p - q @@ -69,6 +69,8 @@ poly1d([ 2.]) 2 1 lambda + 2 lambda + 3 +>>> polydiv(poly1d([1,0,-1]), poly1d([1,1])) +(poly1d([ 1., -1.]), poly1d([ 0.])) """ from scipy.test.testing import * |