/aosp_15_r20/external/arm-optimized-routines/pl/math/test/testcases/directed/ |
H A D | atan2.tst | 1 ; atan2.tst 6 func=atan2 op1=7ff00000.00000001 op2=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i 7 func=atan2 op1=7ff00000.00000001 op2=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i 8 func=atan2 op1=7ff00000.00000001 op2=7ff00000.00000000 result=7ff80000.00000001 errno=0 status=i 9 func=atan2 op1=7ff00000.00000001 op2=fff00000.00000000 result=7ff80000.00000001 errno=0 status=i 10 func=atan2 op1=7ff00000.00000001 op2=00000000.00000000 result=7ff80000.00000001 errno=0 status=i 11 func=atan2 op1=7ff00000.00000001 op2=80000000.00000000 result=7ff80000.00000001 errno=0 status=i 12 func=atan2 op1=7ff00000.00000001 op2=3ff00000.00000000 result=7ff80000.00000001 errno=0 status=i 13 func=atan2 op1=7ff00000.00000001 op2=bff00000.00000000 result=7ff80000.00000001 errno=0 status=i 14 func=atan2 op1=fff00000.00000001 op2=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | test_math.py | 204 self.assertRaises(TypeError, math.atan2) 205 self.ftest('atan2(-1, 0)', math.atan2(-1, 0), -math.pi/2) 206 self.ftest('atan2(-1, 1)', math.atan2(-1, 1), -math.pi/4) 207 self.ftest('atan2(0, 1)', math.atan2(0, 1), 0) 208 self.ftest('atan2(1, 1)', math.atan2(1, 1), math.pi/4) 209 self.ftest('atan2(1, 0)', math.atan2(1, 0), math.pi/2) 211 # math.atan2(0, x) 212 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi) 213 self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi) 214 self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi) [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/glam/src/ |
D | euler.rs | 89 ZYX => scale * math::atan2(-q.x, q.w), 90 ZXY => scale * math::atan2(q.y, q.w), 91 YXZ => scale * math::atan2(-q.z, q.w), 92 YZX => scale * math::atan2(q.x, q.w), 93 XYZ => scale * math::atan2(q.z, q.w), 94 XZY => scale * math::atan2(-q.y, q.w), 98 ZYX => math::atan2( 102 ZXY => math::atan2( 106 YXZ => math::atan2( 110 YZX => math::atan2( [all …]
|
/aosp_15_r20/prebuilts/go/linux-x86/src/math/ |
D | atan2_s390x.s | 48 // Atan2 returns the arc tangent of y/x, using 53 // Atan2(y, NaN) = NaN 54 // Atan2(NaN, x) = NaN 55 // Atan2(+0, x>=0) = +0 56 // Atan2(-0, x>=0) = -0 57 // Atan2(+0, x<=-0) = +Pi 58 // Atan2(-0, x<=-0) = -Pi 59 // Atan2(y>0, 0) = +Pi/2 60 // Atan2(y<0, 0) = -Pi/2 61 // Atan2(+Inf, +Inf) = +Pi/4 [all …]
|
D | atan2.go | 7 // Atan2 returns the arc tangent of y/x, using 13 // Atan2(y, NaN) = NaN 14 // Atan2(NaN, x) = NaN 15 // Atan2(+0, x>=0) = +0 16 // Atan2(-0, x>=0) = -0 17 // Atan2(+0, x<=-0) = +Pi 18 // Atan2(-0, x<=-0) = -Pi 19 // Atan2(y>0, 0) = +Pi/2 20 // Atan2(y<0, 0) = -Pi/2 21 // Atan2(+Inf, +Inf) = +Pi/4 [all …]
|
/aosp_15_r20/external/llvm-libc/test/src/math/smoke/ |
H A D | atan2_test.cpp | 1 //===-- Unittests for atan2 -----------------------------------------------===// 9 #include "src/math/atan2.h" 16 EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::atan2(aNaN, zero)); in TEST_F() 17 EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::atan2(1.0, aNaN)); in TEST_F() 18 EXPECT_FP_EQ_ALL_ROUNDING(0.0, LIBC_NAMESPACE::atan2(zero, zero)); in TEST_F() 19 EXPECT_FP_EQ_ALL_ROUNDING(-0.0, LIBC_NAMESPACE::atan2(-0.0, zero)); in TEST_F() 20 EXPECT_FP_EQ_ALL_ROUNDING(0.0, LIBC_NAMESPACE::atan2(1.0, inf)); in TEST_F() 21 EXPECT_FP_EQ_ALL_ROUNDING(-0.0, LIBC_NAMESPACE::atan2(-1.0, inf)); in TEST_F() 32 LIBC_NAMESPACE::atan2(min_denormal, min_denormal)); in TEST_F() 34 LIBC_NAMESPACE::atan2(min_denormal, max_denormal)); in TEST_F() [all …]
|
/aosp_15_r20/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldAndroidMathTest.java | 124 assertEquals("wrong atan2(0, 1)", 0, Math.atan2(0, 1), 0); in testAtan2DD() 125 assertEquals("wrong atan2(1, 1)", PI / 4, Math.atan2(1, 1), 0); in testAtan2DD() 126 assertEquals("wrong atan2(1, 0)", PI / 2, Math.atan2(1, 0), 0); in testAtan2DD() 127 assertEquals("wrong atan2(1, -1)", 3 * PI / 4, Math.atan2(1, -1), 0); in testAtan2DD() 128 assertEquals("wrong atan2(0, -1)", PI, Math.atan2(0, -1), 0); in testAtan2DD() 129 assertEquals("wrong atan2(-1, -1)", -3 * PI / 4, Math.atan2(-1, -1), 0); in testAtan2DD() 130 assertEquals("wrong atan2(-1, 0)", -PI / 2, Math.atan2(-1, 0), 0); in testAtan2DD() 131 assertEquals("wrong atan2(-1, 1)", -PI / 4, Math.atan2(-1, 1), 0); in testAtan2DD() 134 assertEquals("atan2(42, 42) != atan2(1, 1)", Math.atan2(1, 1), Math.atan2(42, 42), 0); in testAtan2DD() 135 assertEquals("wrong atan2(2, 1)", Math.atan(2), Math.atan2(2, 1), 0); in testAtan2DD() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/libm/src/math/ |
D | atan2.rs | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | atan2.rs | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | atan2.rs | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | atan2.rs | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | atan2.rs | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | atan2.rs | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
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(1, 0)', math.atan2(1, 0), math.pi/2) 327 # math.atan2(0, x) 328 self.ftest('atan2(0., -inf)', math.atan2(0., NINF), math.pi) 329 self.ftest('atan2(0., -2.3)', math.atan2(0., -2.3), math.pi) 330 self.ftest('atan2(0., -0.)', math.atan2(0., -0.), math.pi) [all …]
|
/aosp_15_r20/libcore/luni/src/test/resources/ |
H A D | math_java_only.csv | 1333 atan2,0x1.de03edb049d13p-1,0x1.8531a596c72ddp0,0x1.2010ab87fdf6dp0 1334 atan2,0x1.5e0006fe03d5ep0,0x1.c182771ea4203p0,0x1.733d7681a0201p-2 1335 atan2,0x1.b72d4f4b19fddp-4,0x1.301d6da490bbdp-2,0x1.612ec509c4202p1 1336 atan2,0x1.6f866e02214e2p1,0x1.2351cd82c823bp0,-0x1.06d812d67873ap2 1337 atan2,-0x1.0b52faa4294e2p1,-0x1.8e2cbf42c945fp-2,-0x1.c580a7fc9515bp-3 1338 atan2,0x1.cf2522c614544p-2,0x1.7d2347a2a0dd1p-1,0x1.883636d3453dap0 1339 atan2,0x1.890fffc7530aap-3,0x1.a4d671182277ep-1,0x1.0eb7570fae77p2 1340 atan2,0x1.a6f9610e27639p0,0x1.cefa08776cab6p-2,-0x1.2e54c0dcddf09p-5 1341 atan2,-0x1.5ea763bb781efp1,-0x1.fcf1dc252265dp0,-0x1.2b2e4e65498dcp2 1342 atan2,0x1.97705aba63a9cp0,0x1.d48096493194ap2,-0x1.374eb130f3a5p-3 [all …]
|
/aosp_15_r20/external/llvm-libc/test/src/math/ |
H A D | atan2_test.cpp | 1 //===-- Unittests for atan2 -----------------------------------------------===// 10 #include "src/math/atan2.h" 31 ASSERT_MPFR_MATCH(mpfr::Operation::Atan2, input, in TEST_F() 32 LIBC_NAMESPACE::atan2(x, y), 0.5, rm); in TEST_F() 34 ASSERT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Atan2, input, in TEST_F() 35 LIBC_NAMESPACE::atan2(-x, y), 0.5); in TEST_F() 37 ASSERT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Atan2, input, in TEST_F() 38 LIBC_NAMESPACE::atan2(-x, -y), 0.5); in TEST_F() 40 ASSERT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Atan2, input, in TEST_F() 41 LIBC_NAMESPACE::atan2(x, -y), 0.5); in TEST_F() [all …]
|
/aosp_15_r20/external/apache-xml/test/tests/exslt/math/ |
H A D | math5.xsl | 7 <!-- Test math:atan2() --> 27 <xsl:value-of select="math:atan2($zero)"/><br/> 29 <xsl:value-of select="math:atan2($nzero)"/><br/> 31 <xsl:value-of select="math:atan2($num1)"/><br/> 33 <xsl:value-of select="math:atan2($num2)"/><br/> 35 <xsl:value-of select="math:atan2($temp1)"/><br/> 37 <xsl:value-of select="math:atan2($temp2)"/><br/> 39 <xsl:value-of select="math:atan2($rad1)"/><br/> 41 <xsl:value-of select="math:atan2($rad2)"/><br/> 43 <xsl:value-of select="math:atan2($rad3)"/><br/> [all …]
|
/aosp_15_r20/bionic/libm/upstream-freebsd/lib/msun/src/ |
H A D | e_atan2.c | 14 /* atan2(y,x) 16 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 23 * ATAN2((anything), NaN ) is NaN; 24 * ATAN2(NAN , (anything) ) is NaN; 25 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 26 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 27 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 28 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 29 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 30 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/art/test/123-inline-execute2/ |
H A D | expected-stdout.txt | 10 Math.atan2(0.0, 1.0) = 0.000000000000 20 Math.atan2(0.7853981633974483, 1.7853981633974483) = 0.414423800577 29 Math.atan2(1.5707963267948966, 2.5707963267948966) = 0.548479764417 39 Math.atan2(2.356194490192345, 3.356194490192345) = 0.612096117380 49 Math.atan2(3.141592653589793, 4.141592653589793) = 0.648948780815 59 Math.atan2(3.9269908169872414, 4.926990816987241) = 0.672931229191 68 Math.atan2(4.71238898038469, 5.71238898038469) = 0.689765469251 78 Math.atan2(5.497787143782138, 6.497787143782138) = 0.702226398171 88 Math.atan2(6.283185307179586, 7.283185307179586) = 0.711819549590 159 StrictMath.atan2(0.0, 1.0) = 0.0 [all …]
|
/aosp_15_r20/external/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). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/external/trusty/musl/src/math/ |
D | atan2.c | 13 /* atan2(y,x) 15 * 1. Reduce y to positive by atan2(y,x)=-atan2(-y,x). 22 * ATAN2((anything), NaN ) is NaN; 23 * ATAN2(NAN , (anything) ) is NaN; 24 * ATAN2(+-0, +(anything but NaN)) is +-0 ; 25 * ATAN2(+-0, -(anything but NaN)) is +-pi ; 26 * ATAN2(+-(anything but 0 and NaN), 0) is +-pi/2; 27 * ATAN2(+-(anything but INF and NaN), +INF) is +-0 ; 28 * ATAN2(+-(anything but INF and NaN), -INF) is +-pi; 29 * ATAN2(+-INF,+INF ) is +-pi/4 ; [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/geometry/euclidean/threed/ |
H A D | Rotation.java | 642 FastMath.atan2(-(v1.getY()), v1.getZ()), in getAngles() 644 FastMath.atan2(-(v2.getY()), v2.getX()) in getAngles() 660 FastMath.atan2(v1.getZ(), v1.getY()), in getAngles() 662 FastMath.atan2(v2.getZ(), v2.getX()) in getAngles() 678 FastMath.atan2(v1.getX(), v1.getZ()), in getAngles() 680 FastMath.atan2(v2.getX(), v2.getY()) in getAngles() 696 FastMath.atan2(-(v1.getZ()), v1.getX()), in getAngles() 698 FastMath.atan2(-(v2.getZ()), v2.getY()) in getAngles() 714 FastMath.atan2(-(v1.getX()), v1.getY()), in getAngles() 716 FastMath.atan2(-(v2.getX()), v2.getZ()) in getAngles() [all …]
|
/aosp_15_r20/external/arm-optimized-routines/pl/math/ |
H A D | atan2_2u5.c | 2 * Double-precision scalar atan2(x) function. 21 /* We calculate atan2 by P(n/d), where n and d are similar to the input 35 /* Fast implementation of scalar atan2. Largest errors are when y and x are 37 atan2(-0x1.5915b1498e82fp+732, 0x1.54d11ef838826p+732) 40 atan2 (double y, double x) in atan2() function 153 PL_SIG (S, D, 2, atan2) 154 PL_TEST_ULP (atan2, 1.78) 155 PL_TEST_INTERVAL (atan2, -10.0, 10.0, 50000) 156 PL_TEST_INTERVAL (atan2, -1.0, 1.0, 40000) 157 PL_TEST_INTERVAL (atan2, 0.0, 1.0, 40000) [all …]
|
H A D | v_atan2_3u.c | 2 * Double-precision vector atan2(x) function. 39 return v_call2_f64 (atan2, y, x, ret, cmp); in special_case() 51 /* Fast implementation of vector atan2. 56 float64x2_t VPCS_ATTR V_NAME_D2 (atan2) (float64x2_t y, float64x2_t x) in V_NAME_D2() argument 114 PL_SIG (V, D, 2, atan2) 116 PL_TEST_ULP (V_NAME_D2 (atan2), 2.9) 117 PL_TEST_INTERVAL (V_NAME_D2 (atan2), -10.0, 10.0, 50000) 118 PL_TEST_INTERVAL (V_NAME_D2 (atan2), -1.0, 1.0, 40000) 119 PL_TEST_INTERVAL (V_NAME_D2 (atan2), 0.0, 1.0, 40000) 120 PL_TEST_INTERVAL (V_NAME_D2 (atan2), 1.0, 100.0, 40000) [all …]
|
H A D | sv_atan2_2u5.c | 2 * Double-precision vector atan2(x) function. 35 return sv_call2_f64 (atan2, y, x, ret, cmp); in special_case() 47 /* Fast implementation of SVE atan2. Errors are greatest when y and 51 svfloat64_t SV_NAME_D2 (atan2) (svfloat64_t y, svfloat64_t x, const svbool_t pg) in SV_NAME_D2() argument 110 PL_SIG (SV, D, 2, atan2) 111 PL_TEST_ULP (SV_NAME_D2 (atan2), 1.78) 112 PL_TEST_INTERVAL (SV_NAME_D2 (atan2), 0.0, 1.0, 40000) 113 PL_TEST_INTERVAL (SV_NAME_D2 (atan2), 1.0, 100.0, 40000) 114 PL_TEST_INTERVAL (SV_NAME_D2 (atan2), 100, inf, 40000) 115 PL_TEST_INTERVAL (SV_NAME_D2 (atan2), -0, -inf, 40000)
|