diff options
author | Jaime <jaime.frio@gmail.com> | 2015-12-20 07:35:41 +0100 |
---|---|---|
committer | Jaime <jaime.frio@gmail.com> | 2015-12-20 07:35:41 +0100 |
commit | 144c34b8ecd051e05a93c6268290eadb1827afb0 (patch) | |
tree | c8a1a549e5a093a9433fe9a50a6e0e8bb5358ab1 /numpy/lib/polynomial.py | |
parent | e2bdaccba1a8691f9223b059b981b2890bb13b09 (diff) | |
parent | 8bc592fabf4a2b0bc76db996b1523330ba095be3 (diff) | |
download | numpy-144c34b8ecd051e05a93c6268290eadb1827afb0.tar.gz |
Merge pull request #6867 from gfyoung/print_fixes
DOC: No Print Statements When Using print_function from __future__
Diffstat (limited to 'numpy/lib/polynomial.py')
-rw-r--r-- | numpy/lib/polynomial.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/numpy/lib/polynomial.py b/numpy/lib/polynomial.py index 2f677438b..a5d3f5f5f 100644 --- a/numpy/lib/polynomial.py +++ b/numpy/lib/polynomial.py @@ -715,12 +715,12 @@ def polyadd(a1, a2): >>> p1 = np.poly1d([1, 2]) >>> p2 = np.poly1d([9, 5, 4]) - >>> print p1 + >>> print(p1) 1 x + 2 - >>> print p2 + >>> print(p2) 2 9 x + 5 x + 4 - >>> print np.polyadd(p1, p2) + >>> print(np.polyadd(p1, p2)) 2 9 x + 6 x + 6 @@ -826,13 +826,13 @@ def polymul(a1, a2): >>> p1 = np.poly1d([1, 2, 3]) >>> p2 = np.poly1d([9, 5, 1]) - >>> print p1 + >>> print(p1) 2 1 x + 2 x + 3 - >>> print p2 + >>> print(p2) 2 9 x + 5 x + 1 - >>> print np.polymul(p1, p2) + >>> print(np.polymul(p1, p2)) 4 3 2 9 x + 23 x + 38 x + 17 x + 3 @@ -966,7 +966,7 @@ class poly1d(object): Construct the polynomial :math:`x^2 + 2x + 3`: >>> p = np.poly1d([1, 2, 3]) - >>> print np.poly1d(p) + >>> print(np.poly1d(p)) 2 1 x + 2 x + 3 @@ -1022,7 +1022,7 @@ class poly1d(object): using the `variable` parameter: >>> p = np.poly1d([1,2,3], variable='z') - >>> print p + >>> print(p) 2 1 z + 2 z + 3 |