From 4e59ff6240c9d6dc34e4b8b66d83f04a28ef16a2 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 27 Feb 2010 08:01:35 +0000 Subject: BUG: Fix bug in lbnd implementation of the integ method of the Chebyshev and Polynomial classes. --- numpy/polynomial/tests/test_chebyshev.py | 2 ++ numpy/polynomial/tests/test_polynomial.py | 2 ++ 2 files changed, 4 insertions(+) (limited to 'numpy/polynomial/tests') diff --git a/numpy/polynomial/tests/test_chebyshev.py b/numpy/polynomial/tests/test_chebyshev.py index 4579902ce..10e3fdafa 100644 --- a/numpy/polynomial/tests/test_chebyshev.py +++ b/numpy/polynomial/tests/test_chebyshev.py @@ -419,6 +419,8 @@ class TestChebyshevClass(TestCase) : def test_integ(self) : p = self.p2.integ() assert_almost_equal(p.coef, ch.chebint([1,2,3], 1, 0, scl=.5)) + p = self.p2.integ(lbnd=0) + assert_almost_equal(p(0), 0) p = self.p2.integ(1, 1) assert_almost_equal(p.coef, ch.chebint([1,2,3], 1, 1, scl=.5)) p = self.p2.integ(2, [1, 2]) diff --git a/numpy/polynomial/tests/test_polynomial.py b/numpy/polynomial/tests/test_polynomial.py index 8386aed10..936375a80 100644 --- a/numpy/polynomial/tests/test_polynomial.py +++ b/numpy/polynomial/tests/test_polynomial.py @@ -393,6 +393,8 @@ class TestPolynomialClass(TestCase) : def test_integ(self) : p = self.p2.integ() assert_almost_equal(p.coef, poly.polyint([1,2,3], 1, 0, scl=.5)) + p = self.p2.integ(lbnd=0) + assert_almost_equal(p(0), 0) p = self.p2.integ(1, 1) assert_almost_equal(p.coef, poly.polyint([1,2,3], 1, 1, scl=.5)) p = self.p2.integ(2, [1, 2]) -- cgit v1.2.1