(Poly)
| 402 | |
| 403 | |
| 404 | def test_roots(Poly): |
| 405 | d = Poly.domain * 1.25 + .25 |
| 406 | w = Poly.window |
| 407 | tgt = np.linspace(d[0], d[1], 5) |
| 408 | res = np.sort(Poly.fromroots(tgt, domain=d, window=w).roots()) |
| 409 | assert_almost_equal(res, tgt) |
| 410 | # default domain and window |
| 411 | res = np.sort(Poly.fromroots(tgt).roots()) |
| 412 | assert_almost_equal(res, tgt) |
| 413 | |
| 414 | |
| 415 | def test_degree(Poly): |
nothing calls this directly
no test coverage detected