(self)
| 223 | [1, Decimal(-3), Decimal(2)]) |
| 224 | |
| 225 | def test_complex(self): |
| 226 | p = np.poly1d([3j, 2j, 1j]) |
| 227 | p2 = p.integ() |
| 228 | assert_((p2.coeffs == [1j, 1j, 1j, 0]).all()) |
| 229 | p2 = p.deriv() |
| 230 | assert_((p2.coeffs == [6j, 2j]).all()) |
| 231 | |
| 232 | def test_integ_coeffs(self): |
| 233 | p = np.poly1d([3, 2, 1]) |