(Poly)
| 512 | |
| 513 | |
| 514 | def test_call(Poly): |
| 515 | P = Polynomial |
| 516 | d = Poly.domain |
| 517 | x = np.linspace(d[0], d[1], 11) |
| 518 | |
| 519 | # Check defaults |
| 520 | p = Poly.cast(P([1, 2, 3])) |
| 521 | tgt = 1 + x*(2 + 3*x) |
| 522 | res = p(x) |
| 523 | assert_almost_equal(res, tgt) |
| 524 | |
| 525 | |
| 526 | def test_cutdeg(Poly): |
nothing calls this directly
no test coverage detected