Lines Matching full:real
43 if (x[i].real() == 0 && x[i].imag() == 0)
45 assert(r.real() == 1);
49 else if (x[i].real() == 0 && std::isinf(x[i].imag()))
51 assert(std::isnan(r.real()));
54 else if (x[i].real() == 0 && std::isnan(x[i].imag()))
56 assert(std::isnan(r.real()));
59 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
61 assert(std::isnan(r.real()));
64 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag()))
66 assert(std::isnan(r.real()));
69 else if (std::isinf(x[i].real()) && x[i].imag() == 0)
71 assert(std::isinf(r.real()));
72 assert(!std::signbit(r.real()));
76 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag()))
78 assert(std::isinf(r.real()));
79 assert(std::signbit(r.real()) == std::signbit(cos(x[i].imag())));
81 assert(std::signbit(r.imag()) == std::signbit(x[i].real() * sin(x[i].imag())));
83 else if (std::isinf(x[i].real()) && std::isinf(x[i].imag()))
85 assert(std::isinf(r.real()));
88 else if (std::isinf(x[i].real()) && std::isnan(x[i].imag()))
90 assert(std::isinf(r.real()));
91 assert(r.real() > 0);
94 else if (std::isnan(x[i].real()) && x[i].imag() == 0)
96 assert(std::isnan(r.real()));
99 else if (std::isnan(x[i].real()) && std::isfinite(x[i].imag()))
101 assert(std::isnan(r.real()));
104 else if (std::isnan(x[i].real()) && std::isnan(x[i].imag()))
106 assert(std::isnan(r.real()));