(Poly)
| 420 | |
| 421 | |
| 422 | def test_roots(Poly): |
| 423 | d = Poly.domain * 1.25 + .25 |
| 424 | w = Poly.window |
| 425 | tgt = np.linspace(d[0], d[1], 5) |
| 426 | res = np.sort(Poly.fromroots(tgt, domain=d, window=w).roots()) |
| 427 | assert_almost_equal(res, tgt) |
| 428 | # default domain and window |
| 429 | res = np.sort(Poly.fromroots(tgt).roots()) |
| 430 | assert_almost_equal(res, tgt) |
| 431 | |
| 432 | |
| 433 | def test_degree(Poly): |
nothing calls this directly
no test coverage detected
searching dependent graphs…