(self)
| 253 | [1, Decimal(-3), Decimal(2)]) |
| 254 | |
| 255 | def test_complex(self): |
| 256 | p = np.poly1d([3j, 2j, 1j]) |
| 257 | p2 = p.integ() |
| 258 | assert_((p2.coeffs == [1j, 1j, 1j, 0]).all()) |
| 259 | p2 = p.deriv() |
| 260 | assert_((p2.coeffs == [6j, 2j]).all()) |
| 261 | |
| 262 | def test_integ_coeffs(self): |
| 263 | p = np.poly1d([3, 2, 1]) |