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 ( testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
52 assert(std::isnan(r.imag())); in test_edges()
54 else if (std::abs(testcases[i].real()) == 1 && testcases[i].imag() == 0) in test_edges()
58 assert(r.imag() == 0); in test_edges()
59 assert(std::signbit(testcases[i].imag()) == std::signbit(r.imag())); in test_edges()
61 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
65 if (testcases[i].imag() > 0) in test_edges()
66 is_about(r.imag(), pi/2); in test_edges()
68 is_about(r.imag(), -pi/2); in test_edges()
70 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
73 assert(std::isnan(r.imag())); in test_edges()
75 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
79 if (std::signbit(testcases[i].imag())) in test_edges()
80 is_about(r.imag(), -pi/2); in test_edges()
82 is_about(r.imag(), pi/2); in test_edges()
84 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
88 if (std::signbit(testcases[i].imag())) in test_edges()
89 is_about(r.imag(), -pi/2); in test_edges()
91 is_about(r.imag(), pi/2); in test_edges()
93 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
97 assert(std::isnan(r.imag())); in test_edges()
99 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
102 assert(std::isnan(r.imag())); in test_edges()
104 else if (std::isnan(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
108 if (std::signbit(testcases[i].imag())) in test_edges()
109 is_about(r.imag(), -pi/2); in test_edges()
111 is_about(r.imag(), pi/2); in test_edges()
113 else if (std::isnan(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
116 assert(std::isnan(r.imag())); in test_edges()
121 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()