(Poly)
| 530 | |
| 531 | |
| 532 | def test_call(Poly): |
| 533 | P = Polynomial |
| 534 | d = Poly.domain |
| 535 | x = np.linspace(d[0], d[1], 11) |
| 536 | |
| 537 | # Check defaults |
| 538 | p = Poly.cast(P([1, 2, 3])) |
| 539 | tgt = 1 + x * (2 + 3 * x) |
| 540 | res = p(x) |
| 541 | assert_almost_equal(res, tgt) |
| 542 | |
| 543 | |
| 544 | def test_call_with_list(Poly): |
nothing calls this directly
no test coverage detected
searching dependent graphs…