diff options
Diffstat (limited to 'numpy/polynomial')
-rw-r--r-- | numpy/polynomial/tests/test_chebyshev.py | 6 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_hermite.py | 6 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_hermite_e.py | 6 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_laguerre.py | 6 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_legendre.py | 6 | ||||
-rw-r--r-- | numpy/polynomial/tests/test_polynomial.py | 6 |
6 files changed, 18 insertions, 18 deletions
diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py index 21e4728bf..3f4102db3 100644 --- a/numpy/polynomial/tests/test_chebyshev.py +++ b/numpy/polynomial/tests/test_chebyshev.py @@ -229,21 +229,21 @@ class TestCalculus(TestCase) : # check that zeroth deriviative does nothing for i in range(5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = ch.chebder(tgt, m=0) assert_equal(trim(res), trim(tgt)) # check that derivation is the inverse of integration for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = ch.chebder(ch.chebint(tgt, m=j), m=j) assert_almost_equal(trim(res), trim(tgt)) # check derivation with scaling for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = ch.chebder(ch.chebint(tgt, m=j, scl=2), m=j, scl=.5) assert_almost_equal(trim(res), trim(tgt)) diff --git a/numpy/polynomial/tests/test_hermite.py b/numpy/polynomial/tests/test_hermite.py index dea32f24a..1a32122c8 100644 --- a/numpy/polynomial/tests/test_hermite.py +++ b/numpy/polynomial/tests/test_hermite.py @@ -221,21 +221,21 @@ class TestCalculus(TestCase) : # check that zeroth deriviative does nothing for i in range(5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = herm.hermder(tgt, m=0) assert_equal(trim(res), trim(tgt)) # check that derivation is the inverse of integration for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = herm.hermder(herm.hermint(tgt, m=j), m=j) assert_almost_equal(trim(res), trim(tgt)) # check derivation with scaling for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = herm.hermder(herm.hermint(tgt, m=j, scl=2), m=j, scl=.5) assert_almost_equal(trim(res), trim(tgt)) diff --git a/numpy/polynomial/tests/test_hermite_e.py b/numpy/polynomial/tests/test_hermite_e.py index 6026e0e64..850d77e4d 100644 --- a/numpy/polynomial/tests/test_hermite_e.py +++ b/numpy/polynomial/tests/test_hermite_e.py @@ -220,21 +220,21 @@ class TestCalculus(TestCase) : # check that zeroth deriviative does nothing for i in range(5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = herme.hermeder(tgt, m=0) assert_equal(trim(res), trim(tgt)) # check that derivation is the inverse of integration for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = herme.hermeder(herme.hermeint(tgt, m=j), m=j) assert_almost_equal(trim(res), trim(tgt)) # check derivation with scaling for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = herme.hermeder(herme.hermeint(tgt, m=j, scl=2), m=j, scl=.5) assert_almost_equal(trim(res), trim(tgt)) diff --git a/numpy/polynomial/tests/test_laguerre.py b/numpy/polynomial/tests/test_laguerre.py index f3a4a930b..87759d5b7 100644 --- a/numpy/polynomial/tests/test_laguerre.py +++ b/numpy/polynomial/tests/test_laguerre.py @@ -214,21 +214,21 @@ class TestCalculus(TestCase) : # check that zeroth deriviative does nothing for i in range(5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = lag.lagder(tgt, m=0) assert_equal(trim(res), trim(tgt)) # check that derivation is the inverse of integration for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = lag.lagder(lag.lagint(tgt, m=j), m=j) assert_almost_equal(trim(res), trim(tgt)) # check derivation with scaling for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = lag.lagder(lag.lagint(tgt, m=j, scl=2), m=j, scl=.5) assert_almost_equal(trim(res), trim(tgt)) diff --git a/numpy/polynomial/tests/test_legendre.py b/numpy/polynomial/tests/test_legendre.py index a35e6605e..bcbadae2f 100644 --- a/numpy/polynomial/tests/test_legendre.py +++ b/numpy/polynomial/tests/test_legendre.py @@ -221,21 +221,21 @@ class TestCalculus(TestCase) : # check that zeroth deriviative does nothing for i in range(5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = leg.legder(tgt, m=0) assert_equal(trim(res), trim(tgt)) # check that derivation is the inverse of integration for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = leg.legder(leg.legint(tgt, m=j), m=j) assert_almost_equal(trim(res), trim(tgt)) # check derivation with scaling for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = leg.legder(leg.legint(tgt, m=j, scl=2), m=j, scl=.5) assert_almost_equal(trim(res), trim(tgt)) diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py index 4b93ea118..5fcb86946 100644 --- a/numpy/polynomial/tests/test_polynomial.py +++ b/numpy/polynomial/tests/test_polynomial.py @@ -209,21 +209,21 @@ class TestCalculus(TestCase) : # check that zeroth deriviative does nothing for i in range(5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = poly.polyder(tgt, m=0) assert_equal(trim(res), trim(tgt)) # check that derivation is the inverse of integration for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = poly.polyder(poly.polyint(tgt, m=j), m=j) assert_almost_equal(trim(res), trim(tgt)) # check derivation with scaling for i in range(5) : for j in range(2,5) : - tgt = [1] + [0]*i + tgt = [0]*i + [1] res = poly.polyder(poly.polyint(tgt, m=j, scl=2), m=j, scl=.5) assert_almost_equal(trim(res), trim(tgt)) |