(f, x1, y1, x, exact=True)
| 542 | |
| 543 | |
| 544 | def check_real_value(f, x1, y1, x, exact=True): |
| 545 | z1 = np.array([complex(x1, y1)]) |
| 546 | if exact: |
| 547 | assert_equal(f(z1), x) |
| 548 | else: |
| 549 | assert_almost_equal(f(z1), x) |
| 550 | |
| 551 | |
| 552 | def check_complex_value(f, x1, y1, x2, y2, exact=True): |
no test coverage detected
searching dependent graphs…