/external/libcxx/test/std/numerics/complex.number/complex.transcendentals/ |
acosh.pass.cpp | 43 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...] |
log.pass.cpp | 42 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(), pi/2) [all...] |
acos.pass.cpp | 43 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...] |
atanh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) 46 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 48 else if ( x[i].real() == 0 && std::isnan(x[i].imag())) 52 assert(std::isnan(r.imag())); 54 else if (std::abs(x[i].real()) == 1 && x[i].imag() == 0) 58 assert(r.imag() == 0); 59 assert(std::signbit(x[i].imag()) == std::signbit(r.imag())); 61 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) [all...] |
sinh.pass.cpp | 43 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 (x[i].real() == 0 && std::isinf(x[i].imag())) 53 assert(std::isnan(r.imag())); 55 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 58 assert(std::isnan(r.imag())); 60 else if (x[i].real() == 0 && std::isnan(x[i].imag())) 63 assert(std::isnan(r.imag())); [all...] |
asin.pass.cpp | 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::isfinite(x[i].real()) && std::isinf(x[i].imag())) 52 assert(std::isinf(r.imag())); 53 assert(std::signbit(x[i].imag()) == std::signbit(r.imag())); 55 else if ( x[i].real() == 0 && std::isnan(x[i].imag())) 59 assert(std::isnan(r.imag())); 61 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) [all...] |
exp.pass.cpp | 41 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() == 0) [all...] |
asinh.pass.cpp | 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::isfinite(x[i].real()) && std::isinf(x[i].imag())) 52 if (std::signbit(x[i].imag())) 53 is_about(r.imag(), -pi/2); 55 is_about(r.imag(), pi/2); 57 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) 60 assert(std::isnan(r.imag())); 62 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag())) [all...] |
cosh.pass.cpp | 43 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...] |
sqrt.pass.cpp | 27 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...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.transcendentals/ |
acosh.pass.cpp | 43 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...] |
log.pass.cpp | 42 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(), pi/2) [all...] |
acos.pass.cpp | 43 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...] |
atanh.pass.cpp | 43 if (x[i].real() == 0 && x[i].imag() == 0) 46 assert(std::signbit(r.imag()) == std::signbit(x[i].imag())); 48 else if ( x[i].real() == 0 && std::isnan(x[i].imag())) 52 assert(std::isnan(r.imag())); 54 else if (std::abs(x[i].real()) == 1 && x[i].imag() == 0) 58 assert(r.imag() == 0); 59 assert(std::signbit(x[i].imag()) == std::signbit(r.imag())); 61 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) [all...] |
sinh.pass.cpp | 43 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 (x[i].real() == 0 && std::isinf(x[i].imag())) 53 assert(std::isnan(r.imag())); 55 else if (std::isfinite(x[i].real()) && std::isinf(x[i].imag())) 58 assert(std::isnan(r.imag())); 60 else if (x[i].real() == 0 && std::isnan(x[i].imag())) 63 assert(std::isnan(r.imag())); [all...] |
asin.pass.cpp | 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::isfinite(x[i].real()) && std::isinf(x[i].imag())) 52 assert(std::isinf(r.imag())); 53 assert(std::signbit(x[i].imag()) == std::signbit(r.imag())); 55 else if ( x[i].real() == 0 && std::isnan(x[i].imag())) 59 assert(std::isnan(r.imag())); 61 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) [all...] |
exp.pass.cpp | 41 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() == 0) [all...] |
asinh.pass.cpp | 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::isfinite(x[i].real()) && std::isinf(x[i].imag())) 52 if (std::signbit(x[i].imag())) 53 is_about(r.imag(), -pi/2); 55 is_about(r.imag(), pi/2); 57 else if (std::isfinite(x[i].real()) && std::isnan(x[i].imag())) 60 assert(std::isnan(r.imag())); 62 else if (std::isinf(x[i].real()) && std::isfinite(x[i].imag())) [all...] |
cosh.pass.cpp | 43 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...] |
sqrt.pass.cpp | 27 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...] |
/prebuilts/misc/common/swig/include/2.0.11/octave/ |
octcomplex.swg | 4 the complex Constructor method, and the Real and Imag complex 11 %define %swig_fromcplx_conv(Type, OctConstructor, Real, Imag) 17 return octave_value(OctConstructor(Real(c), Imag(c))); 23 %define %swig_cplxdbl_conv(Type, Constructor, Real, Imag) 33 *val=Constructor(c.real(),c.imag()); 48 %swig_fromcplx_conv(Type, Complex, Real, Imag); 52 %define %swig_cplxflt_conv(Type, Constructor, Real, Imag) 62 double im = c.imag(); 84 %swig_fromcplx_conv(Type, FloatComplex, Real, Imag); 87 #define %swig_cplxflt_convn(Type, Constructor, Real, Imag) \ [all...] |
/prebuilts/misc/common/swig/include/2.0.11/python/ |
pycomplex.swg | 4 the complex Constructor method, and the Real and Imag complex 11 %define %swig_fromcplx_conv(Type, Real, Imag) 17 return PyComplex_FromDoubles(Real(c), Imag(c)); 23 %define %swig_cplxdbl_conv(Type, Constructor, Real, Imag) 44 %swig_fromcplx_conv(Type, Real, Imag); 48 %define %swig_cplxflt_conv(Type, Constructor, Real, Imag) 76 %swig_fromcplx_conv(Type, Real, Imag); 79 #define %swig_cplxflt_convn(Type, Constructor, Real, Imag) \ 80 %swig_cplxflt_conv(Type, Constructor, Real, Imag) 83 #define %swig_cplxdbl_convn(Type, Constructor, Real, Imag) \ [all...] |
/prebuilts/misc/common/swig/include/2.0.11/ruby/ |
rubycomplex.swg | 4 the complex Constructor method, and the Real and Imag complex 27 static ID imag_id = rb_intern("imag"); 43 static ID imag_id = rb_intern("imag"); 55 %define %swig_fromcplx_conv(Type, Real, Imag) 62 VALUE im = rb_float_new(Imag(c)); 69 %define %swig_cplxdbl_conv(Type, Constructor, Real, Imag) 80 VALUE imag = SWIG_Complex_Imaginary(o); 84 SWIG_AsVal_double( imag, &im ); 99 %swig_fromcplx_conv(Type, Real, Imag); 103 %define %swig_cplxflt_conv(Type, Constructor, Real, Imag) [all...] |
/external/libcxx/test/std/numerics/complex.number/complex.members/ |
real_imag.pass.cpp | 13 // 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(-5.5) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/complex.number/complex.members/ |
real_imag.pass.cpp | 13 // 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(-5.5) [all...] |