Home
last modified time | relevance | path

Searched full:sqrt (Results 1 – 25 of 4524) sorted by relevance

12345678910>>...181

/external/bc/tests/bc/
Dsqrt.txt2 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 …]
/external/toybox/tests/files/bc/
Dsqrt.txt2 sqrt(0)
3 sqrt(2)
4 sqrt(4)
5 sqrt(9)
6 sqrt(16)
7 sqrt(25)
8 sqrt(121)
9 sqrt(48765)
10 sqrt(9287356207356)
11 sqrt(0.189274385967238956872354)
[all …]
/external/skia/resources/sksl/errors/
DOssfuzz44555.sksl5 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 …]
/external/llvm/test/CodeGen/PowerPC/
Dvec_sqrt.ll3 ; 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 …]
/external/llvm/test/CodeGen/SystemZ/
Dfp-sqrt-02.ll7 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 …]
Dfp-sqrt-01.ll5 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 …]
/external/apache-xml/test/tests/exslt/math/
Dmath17.xsl7 <!-- 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/>
21Sqrt of <xsl:value-of select="number(//number[1])"/> is <xsl:value-of select="math:sqrt(number(//n…
22Sqrt of <xsl:value-of select="number(//number[2])"/> is <xsl:value-of select="math:sqrt(number(//n…
23Sqrt of <xsl:value-of select="number(//number[3])"/> is <xsl:value-of select="math:sqrt(number(//n…
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/integration/
DLegendreGaussIntegrator.java58 -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 …]
/external/tensorflow/tensorflow/python/training/
Drmsprop_test.py66 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 …]
/external/apache-commons-math/src/main/java/org/apache/commons/math3/analysis/integration/
DLegendreGaussIntegrator.java59 -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 …]
/external/llvm/test/CodeGen/AMDGPU/
Dfsqrt.ll12 %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 …]
/external/llvm/test/CodeGen/AArch64/
Dsqrt-fastmath.ll1 ; 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 …]
/external/skia/resources/sksl/intrinsics/
DSqrt.sksl5 // We should not attempt to constant-fold `sqrt(negative values)`. This sqrt call should remain
8 coords.xy = sqrt(negativeVal).xy;
15 return ( ( (abs(sqrt(inputVal.x) - expected.x) < allowedDelta.x)) &&
16 all(lessThan(abs(sqrt(inputVal.xy) - expected.xy), allowedDelta.xy)) &&
17 all(lessThan(abs(sqrt(inputVal.xyz) - expected.xyz), allowedDelta.xyz)) &&
18 all(lessThan(abs(sqrt(inputVal.xyzw) - expected.xyzw), allowedDelta.xyzw)) &&
19 ( (abs(sqrt(constVal.x) - expected.x) < allowedDelta.x)) &&
20 all(lessThan(abs(sqrt(constVal.xy) - expected.xy), allowedDelta.xy)) &&
21 all(lessThan(abs(sqrt(constVal.xyz) - expected.xyz), allowedDelta.xyz)) &&
22 all(lessThan(abs(sqrt(constVal.xyzw) - expected.xyzw), allowedDelta.xyzw)))
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/
DDormandPrince853Integrator.java64 …(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 …]
/external/apache-commons-math/src/main/java/org/apache/commons/math3/ode/nonstiff/
DDormandPrince853Integrator.java63 …(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 …]
/external/rust/android-crates-io/crates/libm/src/math/
Dsqrt.rs12 /* 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
83 pub fn sqrt(x: f64) -> f64 { in sqrt() function
[all …]
/external/skia/tests/sksl/intrinsics/
DSqrt.skrp24 sqrt_float $0 = sqrt($0)
25 sqrt_float $1 = sqrt($1)
26 sqrt_float $2 = sqrt($2)
27 sqrt_float $3 = sqrt($3)
34 sqrt_float $0 = sqrt($0)
39 sqrt_float $1 = sqrt($1)
40 sqrt_float $2 = sqrt($2)
49 sqrt_float $1 = sqrt($1)
50 sqrt_float $2 = sqrt($2)
51 sqrt_float $3 = sqrt($3)
[all …]
/external/skia/site/docs/dev/design/conical/
D_index.md86 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 …]
/external/apache-xml/test/tests/exslt-gold/math/
Dmath17.out2 Sqrt of 100 is 10<br/>
3 Sqrt of 20 is 4.47213595499958<br/>
4 Sqrt of 1 is 1<br/>
5 Sqrt of 0 is 0<br/>
6 Sqrt of -10 is NaN<br/>
7 Sqrt of 5223849703457 is 2285574.2611993598<br/>
8 Sqrt of NaN is NaN<br/>
9 Sqrt of -394729834.23472393 is NaN</out>
/external/libjpeg-turbo/
Djfdctint.c49 * 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 …]
/external/cronet/stable/third_party/llvm-libc/src/src/__support/FPUtil/generic/
Dsqrt_80_bit_long_double.h33 // if constexpr statement in sqrt.h still requires x86::sqrt to be declared
35 LIBC_INLINE long double sqrt(long double x);
37 // Correctly rounded SQRT for all rounding modes.
40 LIBC_INLINE long double sqrt(long double x) { in sqrt() function
49 // sqrt(+Inf) = +Inf in sqrt()
50 // sqrt(+0) = +0 in sqrt()
51 // sqrt(-0) = -0 in sqrt()
52 // sqrt(NaN) = NaN in sqrt()
53 // sqrt(-NaN) = -NaN in sqrt()
56 // sqrt(-Inf) = NaN in sqrt()
[all …]
/external/cronet/tot/third_party/llvm-libc/src/src/__support/FPUtil/generic/
Dsqrt_80_bit_long_double.h33 // if constexpr statement in sqrt.h still requires x86::sqrt to be declared
35 LIBC_INLINE long double sqrt(long double x);
37 // Correctly rounded SQRT for all rounding modes.
40 LIBC_INLINE long double sqrt(long double x) { in sqrt() function
49 // sqrt(+Inf) = +Inf in sqrt()
50 // sqrt(+0) = +0 in sqrt()
51 // sqrt(-0) = -0 in sqrt()
52 // sqrt(NaN) = NaN in sqrt()
53 // sqrt(-NaN) = -NaN in sqrt()
56 // sqrt(-Inf) = NaN in sqrt()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dfmul.ll128 ; With unsafe/fast math, sqrt(X) * sqrt(X) is just X.
129 declare double @llvm.sqrt.f64(double)
132 %sqrt = call double @llvm.sqrt.f64(double %f)
133 %mul = fmul fast double %sqrt, %sqrt
139 ; With unsafe/fast math, sqrt(X) * sqrt(X) is just X,
140 ; but make sure another use of the sqrt is intact.
146 %sqrt = call double @llvm.sqrt.f64(double %f)
147 %mul1 = fmul fast double %sqrt, %sqrt
148 %mul2 = fmul double %mul1, %sqrt
151 ; CHECK-NEXT: %sqrt = call double @llvm.sqrt.f64(double %f)
[all …]
/external/trusty/musl/src/math/
Dsqrt.c12 /* 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
83 double sqrt(double x) in sqrt() function
[all …]
/external/XNNPACK/scripts/
Dgenerate-f32-vsqrt.sh8 tools/xngen src/f32-vsqrt/scalar-sqrt.c.in -D BATCH_TILE=1 -o src/f32-vsqrt/gen/scalar-sqrt-x1.c &
9 tools/xngen src/f32-vsqrt/scalar-sqrt.c.in -D BATCH_TILE=2 -o src/f32-vsqrt/gen/scalar-sqrt-x2.c &
10 tools/xngen src/f32-vsqrt/scalar-sqrt.c.in -D BATCH_TILE=4 -o src/f32-vsqrt/gen/scalar-sqrt-x4.c &
13 tools/xngen src/f32-vsqrt/wasmsimd-sqrt.c.in -D BATCH_TILE=4 -o src/f32-vsqrt/gen/wasmsimd-sqrt-x4.…
14 tools/xngen src/f32-vsqrt/wasmsimd-sqrt.c.in -D BATCH_TILE=8 -o src/f32-vsqrt/gen/wasmsimd-sqrt-x8.…
17 tools/xngen src/f32-vsqrt/neon-sqrt.c.in -D BATCH_TILE=4 -o src/f32-vsqrt/gen/neon-sqrt-x4.c &
18 tools/xngen src/f32-vsqrt/neon-sqrt.c.in -D BATCH_TILE=8 -o src/f32-vsqrt/gen/neon-sqrt-x8.c &
43 tools/xngen src/f32-vsqrt/sse-sqrt.c.in -D BATCH_TILE=4 -o src/f32-vsqrt/gen/sse-sqrt-x4.c &
44 tools/xngen src/f32-vsqrt/sse-sqrt.c.in -D BATCH_TILE=8 -o src/f32-vsqrt/gen/sse-sqrt-x8.c &
47 tools/xngen src/f32-vsqrt/avx-sqrt.c.in -D BATCH_TILE=8 -o src/f32-vsqrt/gen/avx-sqrt-x8.c &
[all …]

12345678910>>...181