diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2010-05-21 05:36:01 +0000 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2010-05-21 05:36:01 +0000 |
commit | ee4a8d391e21fe41ba919b21e890348c64b5a0e7 (patch) | |
tree | 4218072db004d6bfec9f61b211b3450f84958970 /numpy/polynomial/tests | |
parent | 2041434cbe99115c4c26a7910904769d9bca5c7b (diff) | |
download | numpy-ee4a8d391e21fe41ba919b21e890348c64b5a0e7.tar.gz |
ENH: Add degree method to the Chebyshev and Polynomial classes.
Diffstat (limited to 'numpy/polynomial/tests')
-rw-r--r-- | numpy/polynomial/tests/test_polynomial.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py index 81286d01b..34a3d10f3 100644 --- a/numpy/polynomial/tests/test_polynomial.py +++ b/numpy/polynomial/tests/test_polynomial.py @@ -370,6 +370,9 @@ class TestPolynomialClass(TestCase) : xx = 2*x - 1 assert_almost_equal(self.p2(x), self.p1(xx)) + def test_degree(self) : + assert_equal(self.p1.degree(), 2) + def test_convert(self) : x = np.linspace(-1,1) p = self.p1.convert(domain=[0,1]) |