summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_polynomial.py
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-02-21 02:47:31 +0000
committerPauli Virtanen <pav@iki.fi>2010-02-21 02:47:31 +0000
commit866abe53b0113b890893787f966e812ff771e11f (patch)
tree3cd7764cd26c0f52d2e04e10191f1dfd467366fc /numpy/lib/tests/test_polynomial.py
parentb47f2caba51e6e5b4e96fb16089db8e5abfcdc1b (diff)
downloadnumpy-866abe53b0113b890893787f966e812ff771e11f.tar.gz
3K: lib: poly1d __div__ -> __truediv__, and fix its doctests
Diffstat (limited to 'numpy/lib/tests/test_polynomial.py')
-rw-r--r--numpy/lib/tests/test_polynomial.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/numpy/lib/tests/test_polynomial.py b/numpy/lib/tests/test_polynomial.py
index bbc3b947e..130d11dab 100644
--- a/numpy/lib/tests/test_polynomial.py
+++ b/numpy/lib/tests/test_polynomial.py
@@ -5,22 +5,22 @@
>>> p = poly1d([1.,2,3])
>>> p
poly1d([ 1., 2., 3.])
->>> print p
+>>> print(p)
2
1 x + 2 x + 3
>>> q = poly1d([3.,2,1])
>>> q
poly1d([ 3., 2., 1.])
->>> print q
+>>> print(q)
2
3 x + 2 x + 1
->>> print poly1d([1.89999+2j, -3j, -5.12345678, 2+1j])
+>>> print(poly1d([1.89999+2j, -3j, -5.12345678, 2+1j]))
3 2
(1.9 + 2j) x - 3j x - 5.123 x + (2 + 1j)
->>> print poly1d([100e-90, 1.234567e-9j+3, -1234.999e8])
+>>> print(poly1d([100e-90, 1.234567e-9j+3, -1234.999e8]))
2
1e-88 x + (3 + 1.235e-09j) x - 1.235e+11
->>> print poly1d([-3, -2, -1])
+>>> print(poly1d([-3, -2, -1]))
2
-3 x - 2 x - 1
@@ -70,11 +70,11 @@ poly1d([ 2., 2.])
poly1d([ 2.])
>>> q = poly1d([1.,2,3], variable='y')
->>> print q
+>>> print(q)
2
1 y + 2 y + 3
>>> q = poly1d([1.,2,3], variable='lambda')
->>> print q
+>>> print(q)
2
1 lambda + 2 lambda + 3