Searched refs:imag (Results 1 - 25 of 128) sorted by relevance

123456

/external/libcxx/test/std/numerics/complex.number/complex.member.ops/
H A Ddivide_equal_scalar.pass.cpp23 assert(c.imag() == 0);
26 assert(c.imag() == 0);
29 assert(c.imag() == 0);
32 assert(c.imag() == 0);
33 c.imag(2);
36 assert(c.imag() == 4);
H A Dtimes_equal_scalar.pass.cpp23 assert(c.imag() == 0);
26 assert(c.imag() == 0);
29 assert(c.imag() == 0);
32 assert(c.imag() == 0);
33 c.imag(2);
36 assert(c.imag() == 3);
H A Dminus_equal_scalar.pass.cpp23 assert(c.imag() == 0);
26 assert(c.imag() == 0);
29 assert(c.imag() == 0);
32 assert(c.imag() == 0);
H A Dplus_equal_scalar.pass.cpp23 assert(c.imag() == 0);
26 assert(c.imag() == 0);
29 assert(c.imag() == 0);
32 assert(c.imag() == 0);
H A Dassignment_scalar.pass.cpp23 assert(c.imag() == 0);
26 assert(c.imag() == 0);
29 assert(c.imag() == 0);
/external/libcxx/test/std/numerics/complex.number/complex.special/
H A Ddouble_long_double_implicit.fail.cpp26 assert(cf.imag() == cd.imag());
H A Dfloat_double_implicit.fail.cpp26 assert(cf.imag() == cd.imag());
H A Dfloat_long_double_implicit.fail.cpp26 assert(cf.imag() == cd.imag());
H A Ddouble_float_explicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Ddouble_float_implicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Ddouble_long_double_explicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Dfloat_double_explicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Dfloat_long_double_explicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Dlong_double_double_explicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Dlong_double_double_implicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Dlong_double_float_explicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
H A Dlong_double_float_implicit.pass.cpp27 assert(cf.imag() == cd.imag());
34 static_assert(cf.imag() == cd.imag(), "");
/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/
H A Dexp.pass.cpp41 if (x[i].real() == 0 && x[i].imag() == 0)
44 assert(r.imag() == 0);
45 assert(std::signbit(x[i].imag()) == std::signbit(r.imag()));
47 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
50 assert(std::isnan(r.imag()));
52 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag()))
55 assert(std::isnan(r.imag()));
57 else if (std::isinf(x[i].real()) && x[i].real() > 0 && x[i].imag() == 0)
61 assert(r.imag()
[all...]
H A Dcosh.pass.cpp43 if (x[i].real() == 0 && x[i].imag() == 0)
46 assert(r.imag() == 0);
47 assert(std::signbit(r.imag()) == std::signbit(x[i].imag()));
49 else if (x[i].real() == 0 && std::isinf(x[i].imag()))
52 assert(r.imag() == 0);
54 else if (x[i].real() == 0 && std::isnan(x[i].imag()))
57 assert(r.imag() == 0);
59 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
62 assert(std::isnan(r.imag()));
[all...]
H A Dacos.pass.cpp43 if (x[i].real() == 0 && x[i].imag() == 0)
46 assert(r.imag() == 0);
47 assert(std::signbit(x[i].imag()) != std::signbit(r.imag()));
49 else if (x[i].real() == 0 && std::isnan(x[i].imag()))
52 assert(std::isnan(r.imag()));
54 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
57 assert(std::isinf(r.imag()));
58 assert(std::signbit(x[i].imag()) != std::signbit(r.imag()));
[all...]
H A Dsqrt.pass.cpp27 assert(std::abs(imag(c)) < 1.e-6);
43 if (x[i].real() == 0 && x[i].imag() == 0)
46 assert(std::signbit(r.imag()) == std::signbit(x[i].imag()));
48 else if (std::isinf(x[i].imag()))
52 assert(std::isinf(r.imag()));
53 assert(std::signbit(r.imag()) == std::signbit(x[i].imag()));
55 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag()))
58 assert(std::isnan(r.imag()));
[all...]
H A Dacosh.pass.cpp43 if (x[i].real() == 0 && x[i].imag() == 0)
46 if (std::signbit(x[i].imag()))
47 is_about(r.imag(), -pi/2);
49 is_about(r.imag(), pi/2);
51 else if (x[i].real() == 1 && x[i].imag() == 0)
55 assert(r.imag() == 0);
56 assert(std::signbit(r.imag()) == std::signbit(x[i].imag()));
58 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
62 if (std::signbit(x[i].imag()))
[all...]
H A Dlog.pass.cpp42 if (x[i].real() == 0 && x[i].imag() == 0)
48 if (std::signbit(x[i].imag()))
49 is_about(r.imag(), -pi);
51 is_about(r.imag(), pi);
57 assert(r.imag() == 0);
58 assert(std::signbit(x[i].imag()) == std::signbit(r.imag()));
61 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
65 if (x[i].imag() > 0)
66 is_about(r.imag(), p
[all...]
H A Dtanh.pass.cpp43 if (x[i].real() == 0 && x[i].imag() == 0)
47 assert(r.imag() == 0);
48 assert(std::signbit(r.imag()) == std::signbit(x[i].imag()));
50 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag()))
53 assert(std::isnan(r.imag()));
55 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag()))
58 assert(std::isnan(r.imag()));
60 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag()))
63 assert(r.imag()
[all...]
/external/libcxx/test/std/numerics/complex.number/complex.members/
H A Dreal_imag.pass.cpp13 // void imag(T val);
25 static_assert(c1.imag() == 0, "");
28 static_assert(c2.imag() == 0, "");
31 static_assert(c3.imag() == 4, "");
41 assert(c.imag() == 0);
44 assert(c.imag() == 0);
45 c.imag(4.5);
47 assert(c.imag() == 4.5);
50 assert(c.imag() == 4.5);
51 c.imag(
[all...]

Completed in 196 milliseconds

123456