(self)
| 516 | assert_almost_equal(trim(res), trim(tgt)) |
| 517 | |
| 518 | def test_polyroots(self): |
| 519 | assert_almost_equal(poly.polyroots([1]), []) |
| 520 | assert_almost_equal(poly.polyroots([1, 2]), [-.5]) |
| 521 | for i in range(2, 5): |
| 522 | tgt = np.linspace(-1, 1, i) |
| 523 | res = poly.polyroots(poly.polyfromroots(tgt)) |
| 524 | assert_almost_equal(trim(res), trim(tgt)) |
| 525 | |
| 526 | def test_polyfit(self): |
| 527 | def f(x): |
nothing calls this directly
no test coverage detected