Lines Matching refs:imag
43 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges()
46 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
48 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
52 if (std::signbit(testcases[i].imag())) in test_edges()
53 is_about(r.imag(), -pi/2); in test_edges()
55 is_about(r.imag(), pi/2); in test_edges()
57 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
60 assert(std::isnan(r.imag())); in test_edges()
62 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
66 assert(r.imag() == 0); in test_edges()
67 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges()
69 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
73 if (std::signbit(testcases[i].imag())) in test_edges()
74 is_about(r.imag(), -pi/4); in test_edges()
76 is_about(r.imag(), pi/4); in test_edges()
78 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
82 assert(std::isnan(r.imag())); in test_edges()
84 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
87 assert(r.imag() == 0); in test_edges()
88 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges()
90 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
93 assert(std::isnan(r.imag())); in test_edges()
95 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
98 assert(std::isnan(r.imag())); in test_edges()
100 else if (std::isnan(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
103 assert(std::isnan(r.imag())); in test_edges()
108 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()