(self)
| 260 | assert_((p2.coeffs == [6j, 2j]).all()) |
| 261 | |
| 262 | def test_integ_coeffs(self): |
| 263 | p = np.poly1d([3, 2, 1]) |
| 264 | p2 = p.integ(3, k=[9, 7, 6]) |
| 265 | expected = [1 / 4 / 5, 1 / 3 / 4, 1 / 2 / 3, 9 / 1 / 2, 7, 6] |
| 266 | assert_((p2.coeffs == expected).all()) |
| 267 | |
| 268 | def test_zero_dims(self): |
| 269 | try: |