Lines Matching refs:imag
42 if (testcases[i].real() == 0 && testcases[i].imag() == 0) in test_edges()
46 assert(r.imag() == 0); in test_edges()
47 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
49 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
52 assert(std::isnan(r.imag())); in test_edges()
54 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
57 assert(std::isnan(r.imag())); in test_edges()
59 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
62 assert(r.imag() == 0); in test_edges()
63 assert(std::signbit(r.imag()) == std::signbit(sin(2*testcases[i].imag()))); in test_edges()
65 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
68 assert(r.imag() == 0); in test_edges()
70 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
73 assert(r.imag() == 0); in test_edges()
75 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
78 assert(r.imag() == 0); in test_edges()
79 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
81 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
84 assert(std::isnan(r.imag())); in test_edges()
86 else if (std::isnan(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
89 assert(std::isnan(r.imag())); in test_edges()