(self)
| 35 | '-3 x - 2 x - 1') |
| 36 | |
| 37 | def test_poly1d_resolution(self): |
| 38 | p = np.poly1d([1., 2, 3]) |
| 39 | q = np.poly1d([3., 2, 1]) |
| 40 | assert_equal(p(0), 3.0) |
| 41 | assert_equal(p(5), 38.0) |
| 42 | assert_equal(q(0), 1.0) |
| 43 | assert_equal(q(5), 86.0) |
| 44 | |
| 45 | def test_poly1d_math(self): |
| 46 | # here we use some simple coeffs to make calculations easier |
nothing calls this directly
no test coverage detected