(self)
| 281 | class TestCsqrt: |
| 282 | |
| 283 | def test_simple(self): |
| 284 | # sqrt(1) |
| 285 | check_complex_value(np.sqrt, 1, 0, 1, 0) |
| 286 | |
| 287 | # sqrt(1i) |
| 288 | rres = 0.5 * np.sqrt(2) |
| 289 | ires = rres |
| 290 | check_complex_value(np.sqrt, 0, 1, rres, ires, False) |
| 291 | |
| 292 | # sqrt(-1) |
| 293 | check_complex_value(np.sqrt, -1, 0, 0, 1) |
| 294 | |
| 295 | def test_simple_conjugate(self): |
| 296 | ref = np.conj(np.sqrt(complex(1, 1))) |
nothing calls this directly
no test coverage detected