(self)
| 507 | class TestMisc: |
| 508 | |
| 509 | def test_polyfromroots(self): |
| 510 | res = poly.polyfromroots([]) |
| 511 | assert_almost_equal(trim(res), [1]) |
| 512 | for i in range(1, 5): |
| 513 | roots = np.cos(np.linspace(-np.pi, 0, 2*i + 1)[1::2]) |
| 514 | tgt = Tlist[i] |
| 515 | res = poly.polyfromroots(roots)*2**(i-1) |
| 516 | assert_almost_equal(trim(res), trim(tgt)) |
| 517 | |
| 518 | def test_polyroots(self): |
| 519 | assert_almost_equal(poly.polyroots([1]), []) |
nothing calls this directly
no test coverage detected