• Home
  • Raw
  • Download

Lines Matching refs:imag

41         if (testcases[i].real() == 0 && testcases[i].imag() == 0)  in test_edges()
44 assert(r.imag() == 0); in test_edges()
45 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
47 else if (testcases[i].real() == 0 && std::isinf(testcases[i].imag())) in test_edges()
50 assert(r.imag() == 0); in test_edges()
52 else if (testcases[i].real() == 0 && std::isnan(testcases[i].imag())) in test_edges()
55 assert(r.imag() == 0); in test_edges()
57 else if (std::isfinite(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
60 assert(std::isnan(r.imag())); in test_edges()
62 else if (std::isfinite(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
65 assert(std::isnan(r.imag())); in test_edges()
67 else if (std::isinf(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
71 assert(r.imag() == 0); in test_edges()
72 assert(std::signbit(r.imag()) == std::signbit(testcases[i].imag())); in test_edges()
74 else if (std::isinf(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
77 assert(std::signbit(r.real()) == std::signbit(cos(testcases[i].imag()))); in test_edges()
78 assert(std::isinf(r.imag())); in test_edges()
79 … assert(std::signbit(r.imag()) == std::signbit(testcases[i].real() * sin(testcases[i].imag()))); in test_edges()
81 else if (std::isinf(testcases[i].real()) && std::isinf(testcases[i].imag())) in test_edges()
84 assert(std::isnan(r.imag())); in test_edges()
86 else if (std::isinf(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
90 assert(std::isnan(r.imag())); in test_edges()
92 else if (std::isnan(testcases[i].real()) && testcases[i].imag() == 0) in test_edges()
95 assert(r.imag() == 0); in test_edges()
97 else if (std::isnan(testcases[i].real()) && std::isfinite(testcases[i].imag())) in test_edges()
100 assert(std::isnan(r.imag())); in test_edges()
102 else if (std::isnan(testcases[i].real()) && std::isnan(testcases[i].imag())) in test_edges()
105 assert(std::isnan(r.imag())); in test_edges()