/third_party/jerryscript/tools/unit-tests/ |
H A D | gen-test-libm.c | 160 /* atan2 tests*/ in main() 161 GEN_DBL_TEST (atan2 (NAN, NAN)); in main() 162 GEN_DBL_TEST (atan2 (0.0, NAN)); in main() 163 GEN_DBL_TEST (atan2 (-0.0, NAN)); in main() 164 GEN_DBL_TEST (atan2 (1.0, NAN)); in main() 165 GEN_DBL_TEST (atan2 (-1.0, NAN)); in main() 166 GEN_DBL_TEST (atan2 (INFINITY, NAN)); in main() 167 GEN_DBL_TEST (atan2 (-INFINITY, NAN)); in main() 168 GEN_DBL_TEST (atan2 (NAN, 0.0)); in main() 169 GEN_DBL_TEST (atan2 (NA in main() [all...] |
/third_party/musl/src/math/i386/ |
H A D | atan2.s | 1 .global atan2 2 .type atan2,@function 3 atan2: label
|
H A D | acos.s | 1 # use acos(x) = atan2(fabs(sqrt((1-x)*(1+x))), x)
|
/third_party/python/Lib/test/ |
H A D | test_math.py | 320 self.assertRaises(TypeError, math.atan2) 321 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2) 322 self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4) 323 self.ftest('atan2(0, 1)', math.atan2(0, 1), 0) 324 self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4) 325 self.ftest('atan2( [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/ |
H A D | math_atan2_test.cpp | 17 * @tc.desc: Obtain test data in sequence and check if it is within the expected error range of the atan2 interface. 24 bool testResult = DoubleUlpCmp(g_atan2Data[i].expected, atan2(g_atan2Data[i].input1, g_atan2Data[i].input2), 2); in HWTEST_F() 31 * @tc.desc: When the parameter of atan2 is valid, test the return value of the function. 36 EXPECT_DOUBLE_EQ(0.0, atan2(0.0, 0.0)); in HWTEST_F()
|
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/ |
H A D | compatibility.hpp | 52 template <typename T, precision P> GLM_FUNC_QUALIFIER T atan2(T x, T y){return atan(x, y);} //!< \brief Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) in atan2() function 53 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec2<T, P> atan2(const tvec2<T, P>& x, const tvec2<T, P>& y){return atan(x, y);} //!< \brief Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) in atan2() function 54 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec3<T, P> atan2(const tvec3<T, P>& x, const tvec3<T, P>& y){return atan(x, y);} //!< \brief Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) in atan2() function 55 template <typename T, precision P> GLM_FUNC_QUALIFIER tvec4<T, P> atan2(const tvec4<T, P>& x, const tvec4<T, P>& y){return atan(x, y);} //!< \brief Arc tangent. Returns an angle whose tangent is y/x. The signs of x and y are used to determine what quadrant the angle is in. The range of values returned by this function is [-PI, PI]. Results are undefined if x and y are both 0. (From GLM_GTX_compatibility) in atan2() function
|
/third_party/musl/libc-test/src/api/ |
H A D | tgmath.c | 31 #ifdef atan2 in f() 32 {double r = atan2(x,y);} in f() 34 #error no atan2(x,y) in f()
|
/third_party/musl/src/complex/ |
H A D | carg.c | 5 return atan2(cimag(z), creal(z)); in carg()
|
H A D | catan.c | 97 t = 0.5 * atan2(2.0 * x, a); in catan()
|
/third_party/ltp/testcases/misc/math/float/ |
H A D | float_trigo.c | 35 {FUNC_ATAN2, 50, atan2, "atan2", "datan2", "ratan2",
|
/third_party/jerryscript/tests/jerry/ |
H A D | math-functions-tonumber-rule.js | 32 Math.atan2(b,a);
|
/third_party/jerryscript/jerry-libm/include/ |
H A D | math.h | 57 double atan2 (double, double);
|
/third_party/node/deps/v8/src/base/ |
H A D | ieee754.h | 34 V8_BASE_EXPORT double atan2(double y, double x);
|
/third_party/python/Modules/ |
H A D | cmathmodule.c | 234 r.real = atan2(fabs(z.imag), z.real); in cmath_acos_impl() 251 r.real = 2.*atan2(s1.real, s2.real); in cmath_acos_impl() 278 r.imag = atan2(z.imag, z.real); in cmath_acosh_impl() 287 r.imag = 2.*atan2(s1.imag, s2.real); in cmath_acosh_impl() 338 r.imag = atan2(z.imag, fabs(z.real)); in cmath_asinh_impl() 347 r.imag = atan2(z.imag, s1.real*s2.real-s1.imag*s2.imag); in cmath_asinh_impl() 374 /* Windows screws up atan2 for inf and nan, and alpha Tru64 5.1 doesn't follow 375 C99 for atan2(0., 0.). */ 384 /* atan2(+-inf, +inf) == +-pi/4 */ in c_atan2() 387 /* atan2( in c_atan2() [all...] |
/third_party/ffmpeg/libavutil/ |
H A D | display.c | 45 rotation = atan2(CONV_FP(matrix[1]) / scale[1], in av_display_rotation_get()
|
/third_party/musl/porting/liteos_a/kernel/src/math/ |
H A D | atan2.c | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 46 double atan2(double y, double x) in atan2() function
|
H A D | atan2l.c | 14 * See comments in atan2.c. 23 return atan2(y, x); in atan2l()
|
/third_party/musl/src/math/ |
H A D | atan2.c | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 46 double atan2(double y, double x) in atan2() function
|
H A D | atan2l.c | 14 * See comments in atan2.c. 23 return atan2(y, x); in atan2l()
|
/third_party/musl/libc-test/src/math/ |
H A D | atan2.c | 6 #include "ucb/atan2.h" 7 #include "sanity/atan2.h" 8 #include "special/atan2.h" 27 y = atan2(p->x, p->x2); in main() 31 printf("%s:%d: bad fp exception: %s atan2(%a,%a)=%a, want %s", in main() 38 printf("%s:%d: %s atan2(%a,%a) want %a got %a ulperr %.3f = %a + %a\n", in main()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
H A D | CalendarAstronomer.java | 456 return new Equatorial(Math.atan2(sinL*cosE - tanB*sinE, cosL), in eclipticToEquatorial() 490 double azimuth = Math.atan2(-cosD*cosL*sinH, sinD - sinL * Math.sin(altitude)); in eclipticToHorizon() 900 // double v = Math.atan2( B, A )*RAD_DEG; 917 // // atan2() function to compute sRA. 919 // double sRA = Math.atan2(Math.sin(slon*DEG_RAD) * Math.cos(oblecl*DEG_RAD), Math.cos(slon*DEG_RAD))*RAD_DEG; 1076 moonEclipLong = Math.atan2(y*Math.cos(moonI), x) + nodeLongitude; in getMoonPosition()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
H A D | CalendarAstronomer.java | 458 return new Equatorial(Math.atan2(sinL*cosE - tanB*sinE, cosL), in eclipticToEquatorial() 492 double azimuth = Math.atan2(-cosD*cosL*sinH, sinD - sinL * Math.sin(altitude)); in eclipticToHorizon() 902 // double v = Math.atan2( B, A )*RAD_DEG; 919 // // atan2() function to compute sRA. 921 // double sRA = Math.atan2(Math.sin(slon*DEG_RAD) * Math.cos(oblecl*DEG_RAD), Math.cos(slon*DEG_RAD))*RAD_DEG; 1078 moonEclipLong = Math.atan2(y*Math.cos(moonI), x) + nodeLongitude; in getMoonPosition()
|
/third_party/musl/porting/uniproton/kernel/include/ |
H A D | tgmath.h | 151 #undef atan2 macro 214 #define atan2(x,y) __tg_real_2(atan2, (x), (y)) macro
|
/third_party/musl/porting/liteos_m/kernel/include/ |
H A D | tgmath.h | 151 #undef atan2 macro 214 #define atan2(x,y) __tg_real_2(atan2, (x), (y)) macro
|
/third_party/musl/include/ |
H A D | tgmath.h | 151 #undef atan2 macro 214 #define atan2(x,y) __tg_real_2(atan2, (x), (y)) macro
|