From ee4a8d391e21fe41ba919b21e890348c64b5a0e7 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 21 May 2010 05:36:01 +0000 Subject: ENH: Add degree method to the Chebyshev and Polynomial classes. --- numpy/polynomial/tests/test_polynomial.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'numpy/polynomial/tests') 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]) -- cgit v1.2.1