(self)
| 230 | assert_((p2.coeffs == [6j, 2j]).all()) |
| 231 | |
| 232 | def test_integ_coeffs(self): |
| 233 | p = np.poly1d([3, 2, 1]) |
| 234 | p2 = p.integ(3, k=[9, 7, 6]) |
| 235 | assert_( |
| 236 | (p2.coeffs == [1/4./5., 1/3./4., 1/2./3., 9/1./2., 7, 6]).all()) |
| 237 | |
| 238 | def test_zero_dims(self): |
| 239 | try: |