/aosp_15_r20/external/tensorflow/tensorflow/python/training/ |
H A D | rmsprop_test.py | 66 mom_t = momentum * mom + lr * g / np.sqrt(denom_t, dtype=denom_t.dtype) 84 mom_t[gindex] = momentum * mom[gindex] + lr * gvalue / np.sqrt(denom_t) 325 1.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)), 326 2.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)) 330 3.0 - (0.01 * 2.0 / math.sqrt(0.90001 + 1.0)), 331 4.0 - (0.01 * 2.0 / math.sqrt(0.90001 + 1.0)) 345 1.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)) - 346 (0.1 * 2.0 / math.sqrt(0.901 * 0.9 + 0.001 + 1.0)), 347 2.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)) - 348 (0.1 * 2.0 / math.sqrt(0.901 * 0.9 + 0.001 + 1.0)) [all …]
|
/aosp_15_r20/external/skia/site/docs/dev/design/conical/ |
H A D | _index.md | 86 2. $\left(\sqrt{(r_1^2 - 1) y ^2 + r_1^2 x^2} - x\right) / (r_1^2 - 1)$ if 88 3. $\left(\pm \sqrt{(r_1^2 - 1) y ^2 + r_1^2 x^2} - x\right) / (r_1^2 - 1)$ if 129 $x' = r_1 / (r_1^2 - 1) x,~ y' = \frac{\sqrt{r_1^2 - 1}}{r_1^2 - 1} y$, then 130 $x_t = \sqrt{x'^2 + y'^2} - x' / r_1$ 132 $x' = r_1 / (r_1^2 - 1) x,~ y' = \frac{\sqrt{1 - r_1^2}}{r_1^2 - 1} y$, then 133 $x_t = \pm\sqrt{x'^2 - y'^2} - x' / r_1$ 146 $x' = r_1 / (r_1^2 - 1) x,~ y' = \sqrt{|r_1^2 - 1|} / (r_1^2 - 1) y$ if 150 6. If $r_1 > 1$, let $\hat x_t = \sqrt{\hat x^2 + \hat y^2} - \hat x / r_1$ 153 2. let $\hat x_t = -\sqrt{\hat x^2 - \hat y^2} - \hat x / r_1$ if we've 155 3. let $\hat x_t = \sqrt{\hat x^2 - \hat y^2} - \hat x / r_1$ otherwise [all …]
|
/aosp_15_r20/external/skia/resources/sksl/errors/ |
H A D | Ossfuzz44555.sksl | 5 switch(int(sqrt(-128))) {case 0:;case 256:;case 66:;;; ;; 7 switch(int(sqrt(-0))) {case 0:;case 256:;case 66:;;;case 5: 11 switch(int(sqrt(-0))) {case 0:;case 66:;;;case 5: 17 switch(int(sqrt(-128))) {case 0:;case 256:;case 66:;;; ;; 19 switch(int(sqrt(-0))) {case 0:;case 256:;case 66:;;;case 5: 23 switch(int(sqrt(-0))) {case 0:;case 66:;;;case 5: 28 switch(int(sqrt(-0))) {case 0:;case 256:;case 66:;;;;case 3:; 31 switch(int(sqrt(-0))) {case 0:;case 66:;;;case 5: 36 switch(int(sqrt(-0))) {case 0:;case 256:;case 66:;;;case 5: 40 switch(int(sqrt(-0))) {case 0:;case 66:;;;c; [all …]
|
/aosp_15_r20/libcore/ojluni/src/test/java/math/BigDecimal/ |
H A D | SquareRootTests.java | 28 * @summary Tests of BigDecimal.sqrt(). 57 BigDecimal result = input.sqrt(MathContext.DECIMAL64); in negativeTests() 58 Assert.fail("Unexpected sqrt of negative: (" + in negativeTests() 59 input + ").sqrt() = " + result ); in negativeTests() 72 compare(BigDecimal.valueOf(0L, i).sqrt(MathContext.UNLIMITED), in zeroTests() 75 compare(BigDecimal.valueOf(0L, i).sqrt(MathContext.DECIMAL64), in zeroTests() 146 equalNumerically(BigSquareRoot.sqrt(bd, mc), in compareSqrtImplementations() 147 bd.sqrt(mc), "sqrt(" + bd + ") under " + mc); in compareSqrtImplementations() 151 * sqrt(10^2N) is 10^N 166 result = testValue.sqrt(MathContext.DECIMAL64), in evenPowersOfTenTests() [all …]
|
/aosp_15_r20/external/llvm/test/CodeGen/SystemZ/ |
H A D | fp-sqrt-02.ll | 7 declare double @llvm.sqrt.f64(double %f) 8 declare double @sqrt(double) 15 %res = call double @llvm.sqrt.f64(double %val) 25 %res = call double @llvm.sqrt.f64(double %val) 36 %res = call double @llvm.sqrt.f64(double %val) 49 %res = call double @llvm.sqrt.f64(double %val) 61 %res = call double @llvm.sqrt.f64(double %val) 74 %res = call double @llvm.sqrt.f64(double %val) 102 %sqrt0 = call double @llvm.sqrt.f64(double %val0) 103 %sqrt1 = call double @llvm.sqrt.f64(double %val1) [all …]
|
H A D | fp-sqrt-01.ll | 5 declare float @llvm.sqrt.f32(float) 13 %res = call float @llvm.sqrt.f32(float %val) 23 %res = call float @llvm.sqrt.f32(float %val) 34 %res = call float @llvm.sqrt.f32(float %val) 47 %res = call float @llvm.sqrt.f32(float %val) 59 %res = call float @llvm.sqrt.f32(float %val) 72 %res = call float @llvm.sqrt.f32(float %val) 100 %sqrt0 = call float @llvm.sqrt.f32(float %val0) 101 %sqrt1 = call float @llvm.sqrt.f32(float %val1) 102 %sqrt2 = call float @llvm.sqrt.f32(float %val2) [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/integration/ |
H A D | LegendreGaussIntegrator.java | 58 -1.0 / FastMath.sqrt(3.0), 59 1.0 / FastMath.sqrt(3.0) 70 -FastMath.sqrt(0.6), 72 FastMath.sqrt(0.6) 84 -FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0), 85 -FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0), 86 FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0), 87 FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0) 92 (90.0 - 5.0 * FastMath.sqrt(30.0)) / 180.0, 93 (90.0 + 5.0 * FastMath.sqrt(30.0)) / 180.0, [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | cmath_testcases.txt | 1408 -- sqrt: Square root -- 1412 sqrt0000 sqrt 0.0 0.0 -> 0.0 0.0 1413 sqrt0001 sqrt 0.0 -0.0 -> 0.0 -0.0 1414 sqrt0002 sqrt -0.0 0.0 -> 0.0 0.0 1415 sqrt0003 sqrt -0.0 -0.0 -> 0.0 -0.0 1418 sqrt0010 sqrt -9.8813129168249309e-324 0.0 -> 0.0 3.1434555694052576e-162 1419 sqrt0011 sqrt -9.8813129168249309e-324 -0.0 -> 0.0 -3.1434555694052576e-162 1420 sqrt0012 sqrt -1e-305 0.0 -> 0.0 3.1622776601683791e-153 1421 sqrt0013 sqrt -1e-305 -0.0 -> 0.0 -3.1622776601683791e-153 1422 sqrt0014 sqrt -1e-150 0.0 -> 0.0 9.9999999999999996e-76 [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/analysis/integration/ |
H A D | LegendreGaussIntegrator.java | 59 -1.0 / FastMath.sqrt(3.0), 60 1.0 / FastMath.sqrt(3.0) 71 -FastMath.sqrt(0.6), 73 FastMath.sqrt(0.6) 85 -FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0), 86 -FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0), 87 FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0), 88 FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0) 93 (90.0 - 5.0 * FastMath.sqrt(30.0)) / 180.0, 94 (90.0 + 5.0 * FastMath.sqrt(30.0)) / 180.0, [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | cmath_testcases.txt | 1428 -- sqrt: Square root -- 1432 sqrt0000 sqrt 0.0 0.0 -> 0.0 0.0 1433 sqrt0001 sqrt 0.0 -0.0 -> 0.0 -0.0 1434 sqrt0002 sqrt -0.0 0.0 -> 0.0 0.0 1435 sqrt0003 sqrt -0.0 -0.0 -> 0.0 -0.0 1438 sqrt0010 sqrt -9.8813129168249309e-324 0.0 -> 0.0 3.1434555694052576e-162 1439 sqrt0011 sqrt -9.8813129168249309e-324 -0.0 -> 0.0 -3.1434555694052576e-162 1440 sqrt0012 sqrt -1e-305 0.0 -> 0.0 3.1622776601683791e-153 1441 sqrt0013 sqrt -1e-305 -0.0 -> 0.0 -3.1622776601683791e-153 1442 sqrt0014 sqrt -1e-150 0.0 -> 0.0 9.9999999999999996e-76 [all …]
|
/aosp_15_r20/external/llvm/test/CodeGen/PowerPC/ |
H A D | vec_sqrt.ll | 3 ; Check for vector sqrt expansion using floating-point types, since altivec 9 declare <2 x float> @llvm.sqrt.v2f32(<2 x float> %val) 10 declare <4 x float> @llvm.sqrt.v4f32(<4 x float> %val) 11 declare <8 x float> @llvm.sqrt.v8f32(<8 x float> %val) 12 declare <2 x double> @llvm.sqrt.v2f64(<2 x double> %val) 13 declare <4 x double> @llvm.sqrt.v4f64(<4 x double> %val) 17 %sqrt = call <2 x float> @llvm.sqrt.v2f32 (<2 x float> %x) 18 ret <2 x float> %sqrt 20 ; sqrt (<2 x float>) is promoted to sqrt (<4 x float>) 29 %sqrt = call <4 x float> @llvm.sqrt.v4f32 (<4 x float> %x) [all …]
|
/aosp_15_r20/external/bc/tests/bc/ |
H A D | sqrt.txt | 2 sqrt(0) 3 sqrt(1) 4 sqrt(1.00000000000) 5 sqrt(2) 6 sqrt(4) 7 sqrt(9) 8 sqrt(16) 9 sqrt(25) 10 sqrt(121) 11 sqrt(48765) [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 | sqrt.rs | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(NaN) = NaN ... with invalid signal for signaling NaN 82 pub fn sqrt(x: f64) -> f64 { in sqrt() function [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 | sqrt.rs | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(NaN) = NaN ... with invalid signal for signaling NaN 82 pub fn sqrt(x: f64) -> f64 { in sqrt() function [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | sqrt.rs | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(NaN) = NaN ... with invalid signal for signaling NaN 82 pub fn sqrt(x: f64) -> f64 { in sqrt() function [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 | sqrt.rs | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(NaN) = NaN ... with invalid signal for signaling NaN 82 pub fn sqrt(x: f64) -> f64 { in sqrt() function [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/libm/src/math/ |
D | sqrt.rs | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(NaN) = NaN ... with invalid signal for signaling NaN 82 pub fn sqrt(x: f64) -> f64 { in sqrt() function [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/ |
H A D | DormandPrince853Integrator.java | 64 …(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0, (6.0 - FastMath.sqrt(6.0)) / 45.0, (6.0 - FastMath.sqrt… 65 (6.0 + FastMath.sqrt(6.0)) / 30.0, 1.0/3.0, 1.0/4.0, 4.0/13.0, 127.0/195.0, 3.0/5.0, 73 {(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0}, 76 {(6.0 - FastMath.sqrt(6.0)) / 180.0, (6.0 - FastMath.sqrt(6.0)) / 60.0}, 79 {(6.0 - FastMath.sqrt(6.0)) / 120.0, 0.0, (6.0 - FastMath.sqrt(6.0)) / 40.0}, 82 {(462.0 + 107.0 * FastMath.sqrt(6.0)) / 3000.0, 0.0, 83 (-402.0 - 197.0 * FastMath.sqrt(6.0)) / 1000.0, (168.0 + 73.0 * FastMath.sqrt(6.0)) / 375.0}, 86 … {1.0 / 27.0, 0.0, 0.0, (16.0 + FastMath.sqrt(6.0)) / 108.0, (16.0 - FastMath.sqrt(6.0)) / 108.0}, 89 {19.0 / 512.0, 0.0, 0.0, (118.0 + 23.0 * FastMath.sqrt(6.0)) / 1024.0, 90 (118.0 - 23.0 * FastMath.sqrt(6.0)) / 1024.0, -9.0 / 512.0}, [all …]
|
/aosp_15_r20/external/apache-commons-math/src/main/java/org/apache/commons/math3/ode/nonstiff/ |
H A D | DormandPrince853Integrator.java | 63 …(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0, (6.0 - FastMath.sqrt(6.0)) / 45.0, (6.0 - FastMath.sqrt… 64 (6.0 + FastMath.sqrt(6.0)) / 30.0, 1.0/3.0, 1.0/4.0, 4.0/13.0, 127.0/195.0, 3.0/5.0, 72 {(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0}, 75 {(6.0 - FastMath.sqrt(6.0)) / 180.0, (6.0 - FastMath.sqrt(6.0)) / 60.0}, 78 {(6.0 - FastMath.sqrt(6.0)) / 120.0, 0.0, (6.0 - FastMath.sqrt(6.0)) / 40.0}, 81 {(462.0 + 107.0 * FastMath.sqrt(6.0)) / 3000.0, 0.0, 82 (-402.0 - 197.0 * FastMath.sqrt(6.0)) / 1000.0, (168.0 + 73.0 * FastMath.sqrt(6.0)) / 375.0}, 85 … {1.0 / 27.0, 0.0, 0.0, (16.0 + FastMath.sqrt(6.0)) / 108.0, (16.0 - FastMath.sqrt(6.0)) / 108.0}, 88 {19.0 / 512.0, 0.0, 0.0, (118.0 + 23.0 * FastMath.sqrt(6.0)) / 1024.0, 89 (118.0 - 23.0 * FastMath.sqrt(6.0)) / 1024.0, -9.0 / 512.0}, [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/vendor/compiler_builtins/libm/src/math/ |
H A D | sqrt.rs | 12 /* sqrt(x) 13 * Return correctly rounded sqrt. 15 * | Use the hardware sqrt if you have one | 22 * sqrt(x) = 2^k * sqrt(y) 24 * Let q = sqrt(y) truncated to i bit after binary point (q = 1), 73 * sqrt(+-0) = +-0 ... exact 74 * sqrt(inf) = inf 75 * sqrt(-ve) = NaN ... with invalid signal 76 * sqrt(NaN) = NaN ... with invalid signal for signaling NaN 82 pub fn sqrt(x: f64) -> f64 { in sqrt() function [all …]
|
/aosp_15_r20/external/llvm/test/Transforms/InstCombine/ |
H A D | fast-math.ll | 559 declare double @llvm.sqrt.f64(double) 563 %sqrt = call fast double @llvm.sqrt.f64(double %mul) 564 ret double %sqrt 577 %sqrt = call fast double @llvm.sqrt.f64(double %mul2) 578 ret double %sqrt 582 ; CHECK-NEXT: %sqrt1 = call fast double @llvm.sqrt.f64(double %y) 590 %sqrt = call fast double @llvm.sqrt.f64(double %mul2) 591 ret double %sqrt 595 ; CHECK-NEXT: %sqrt1 = call fast double @llvm.sqrt.f64(double %y) 603 %sqrt = call fast double @llvm.sqrt.f64(double %mul2) [all …]
|
/aosp_15_r20/external/llvm/test/CodeGen/AMDGPU/ |
H A D | fsqrt.ll | 12 %r1 = call float @llvm.sqrt.f32(float %r0) 21 %r1 = call float @llvm.sqrt.f32(float %r0) 34 %fdiv = call float @llvm.sqrt.f32(float %in) 49 %fdiv = call <2 x float> @llvm.sqrt.v2f32(<2 x float> %in) 70 %fdiv = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %in) 80 %sqrt = call float @llvm.sqrt.f32(float %in) 82 %res = select i1 %cmp, float 0x7FF8000000000000, float %sqrt 92 %sqrt = call float @llvm.sqrt.f32(float %in) 94 %res = select i1 %cmp, float 0x7FF8000000000000, float %sqrt 104 %sqrt = call float @llvm.sqrt.f32(float %in) [all …]
|
/aosp_15_r20/external/libjpeg-turbo/ |
H A D | jfdctint.c | 49 * Each 1-D DCT step produces outputs which are a factor of sqrt(N) 54 * because the y0 and y4 outputs need not be divided by sqrt(N). 153 /* Note results are scaled up by sqrt(8) compared to a true DCT; */ 168 * rotator "sqrt(2)*c1" should be "sqrt(2)*c6". 185 /* Odd part per figure 8 --- note paper omits factor of sqrt(2). 194 z5 = MULTIPLY(z3 + z4, FIX_1_175875602); /* sqrt(2) * c3 */ 196 tmp4 = MULTIPLY(tmp4, FIX_0_298631336); /* sqrt(2) * (-c1+c3+c5-c7) */ 197 tmp5 = MULTIPLY(tmp5, FIX_2_053119869); /* sqrt(2) * ( c1+c3-c5+c7) */ 198 tmp6 = MULTIPLY(tmp6, FIX_3_072711026); /* sqrt(2) * ( c1+c3+c5-c7) */ 199 tmp7 = MULTIPLY(tmp7, FIX_1_501321110); /* sqrt(2) * ( c1+c3-c5-c7) */ [all …]
|
/aosp_15_r20/external/apache-xml/test/tests/exslt/math/ |
H A D | math17.xsl | 7 <!-- Test math:sqrt() --> 16 Sqrt of <xsl:value-of select="$num1"/> is <xsl:value-of select="math:sqrt($num1)"/><br/> 17 Sqrt of <xsl:value-of select="$num2"/> is <xsl:value-of select="math:sqrt($num2)"/><br/> 18 Sqrt of <xsl:value-of select="$num3"/> is <xsl:value-of select="math:sqrt($num3)"/><br/> 19 Sqrt of <xsl:value-of select="$num4"/> is <xsl:value-of select="math:sqrt($num4)"/><br/> 20 Sqrt of <xsl:value-of select="$num5"/> is <xsl:value-of select="math:sqrt($num5)"/><br/> 21 …Sqrt of <xsl:value-of select="number(//number[1])"/> is <xsl:value-of select="math:sqrt(number(//n… 22 …Sqrt of <xsl:value-of select="number(//number[2])"/> is <xsl:value-of select="math:sqrt(number(//n… 23 …Sqrt of <xsl:value-of select="number(//number[3])"/> is <xsl:value-of select="math:sqrt(number(//n…
|
/aosp_15_r20/external/llvm/test/CodeGen/AArch64/ |
H A D | sqrt-fastmath.ll | 1 ; RUN: llc < %s -mtriple=aarch64 -mattr=neon -recip=!sqrt,!vec-sqrt | FileCheck %s --check-prefix=F… 2 ; RUN: llc < %s -mtriple=aarch64 -mattr=neon -recip=sqrt,vec-sqrt | FileCheck %s 6 declare float @llvm.sqrt.f32(float) #1 7 declare double @llvm.sqrt.f64(double) #1 8 declare <2 x float> @llvm.sqrt.v2f32(<2 x float>) #1 9 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>) #1 10 declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) #1 13 %1 = tail call fast float @llvm.sqrt.f32(float %a) 27 %1 = tail call fast <2 x float> @llvm.sqrt.v2f32(<2 x float> %a) #2 42 %1 = tail call fast <4 x float> @llvm.sqrt.v4f32(<4 x float> %a) #2 [all …]
|