Home
last modified time | relevance | path

Searched refs:divide (Results 1 – 25 of 755) sorted by relevance

12345678910>>...31

/external/python/cpython3/Lib/test/decimaltestdata/
DddDivide.decTest30 dddiv001 divide 1 1 -> 1
31 dddiv002 divide 2 1 -> 2
32 dddiv003 divide 1 2 -> 0.5
33 dddiv004 divide 2 2 -> 1
34 dddiv005 divide 0 1 -> 0
35 dddiv006 divide 0 2 -> 0
36 dddiv007 divide 1 3 -> 0.3333333333333333 Inexact Rounded
37 dddiv008 divide 2 3 -> 0.6666666666666667 Inexact Rounded
38 dddiv009 divide 3 3 -> 1
40 dddiv010 divide 2.4 1 -> 2.4
[all …]
DdqDivide.decTest30 dqdiv001 divide 1 1 -> 1
31 dqdiv002 divide 2 1 -> 2
32 dqdiv003 divide 1 2 -> 0.5
33 dqdiv004 divide 2 2 -> 1
34 dqdiv005 divide 0 1 -> 0
35 dqdiv006 divide 0 2 -> 0
36 dqdiv007 divide 1 3 -> 0.3333333333333333333333333333333333 Inexact Rounded
37 dqdiv008 divide 2 3 -> 0.6666666666666666666666666666666667 Inexact Rounded
38 dqdiv009 divide 3 3 -> 1
40 dqdiv010 divide 2.4 1 -> 2.4
[all …]
Ddivide.decTest2 -- divide.decTest -- decimal division --
29 divx001 divide 1 1 -> 1
30 divx002 divide 2 1 -> 2
31 divx003 divide 1 2 -> 0.5
32 divx004 divide 2 2 -> 1
33 divx005 divide 0 1 -> 0
34 divx006 divide 0 2 -> 0
35 divx007 divide 1 3 -> 0.333333333 Inexact Rounded
36 divx008 divide 2 3 -> 0.666666667 Inexact Rounded
37 divx009 divide 3 3 -> 1
[all …]
Dinexact.decTest123 -- divide
125 inx201 divide 1000 1000 -> 1
126 inx202 divide 1000 1 -> 1000
127 inx203 divide 1000 2 -> 500
128 inx204 divide 1000 3 -> 333.3 Inexact Rounded
129 inx205 divide 1000 4 -> 250
130 inx206 divide 1000 5 -> 200
131 inx207 divide 1000 6 -> 166.7 Inexact Rounded
132 inx208 divide 1000 7 -> 142.9 Inexact Rounded
133 inx209 divide 1000 8 -> 125
[all …]
Drounding.decTest582 rdvx101 divide 12345 1 -> 12345
583 rdvx102 divide 12345 1.0001 -> 12343 Inexact Rounded
584 rdvx103 divide 12345 1.001 -> 12332 Inexact Rounded
585 rdvx104 divide 12345 1.01 -> 12222 Inexact Rounded
586 rdvx105 divide 12345 1.1 -> 11222 Inexact Rounded
587 rdvx106 divide 12355 4 -> 3088.7 Inexact Rounded
588 rdvx107 divide 12345 4 -> 3086.2 Inexact Rounded
589 rdvx108 divide 12355 4.0001 -> 3088.6 Inexact Rounded
590 rdvx109 divide 12345 4.0001 -> 3086.1 Inexact Rounded
591 rdvx110 divide 12345 4.9 -> 2519.3 Inexact Rounded
[all …]
Drandoms.decTest32 xdiv001 divide 905.67402 -202896611.E-780472620 -> -4.46372177E+780472614 Inexact Rounded
40 xdiv002 divide 3915134.7 -597164907. -> -0.00655620358 Inexact Rounded
48 xdiv003 divide 309759261 62663.487 -> 4943.21775 Inexact Rounded
56 xdiv004 divide 3.93591888E-236595626 7242375.00 -> 5.43456930E-236595633 Inexact Rounded
64 xdiv005 divide 323902.714 -608669.607E-657060568 -> -5.32148657E+657060567 Inexact Rounded
72 xdiv006 divide 5.11970092 -8807.22036 -> -0.000581307236 Inexact Rounded
80 xdiv007 divide -7.99874516 4561.83758 -> -0.00175340420 Inexact Rounded
88 xdiv008 divide 297802878 -927206.324 -> -321.182967 Inexact Rounded
96 xdiv009 divide -766.651824 31300.3619 -> -0.0244933853 Inexact Rounded
104 xdiv010 divide -56746.8689E+934981942 471002521. -> -1.20481030E+934981938 Inexact Rounded
[all …]
DrandomBound32.decTest34 divx3001 divide 4953734675913.065314738743322579 0218.932010396534371704930714860E+797 -> 2.2626817…
42 divx3002 divide 9641.684323386955881595490347910E-844 -78864532047.12287484430980636798E+934 -> -1.…
50 divx3003 divide -1.028048571628326871054964307774E+529 49200008645699.35577937582714739 -> -2.08952…
58 divx3004 divide 479084.8561808930525417735205519 084157571054.2691784660983989931 -> 0.000005692712…
66 divx3005 divide -0363750788.573782205664349562931 -3172.080934464133691909905980096 -> 114672.60643…
74 divx3006 divide 1381026551423669919010191878449 -82.66614775445371254999357800739 -> -1670607121461…
82 divx3007 divide 4627.026960423072127953556635585 -4410583132901.830017479741231131 -> -1.0490737439…
90 divx3008 divide 75353574493.84484153484918212042 -8684111695095849922263044191221 -> -8.67717702622…
98 divx3009 divide 6907058.216435355874729592373011 2.857005446917670515662398741545 -> 2417586.646146…
106 divx3010 divide -38949530427253.24030680468677190 712168021.1265384466442576619064E-992 -> -5.46914…
[all …]
/external/python/cpython2/Lib/test/decimaltestdata/
DddDivide.decTest30 dddiv001 divide 1 1 -> 1
31 dddiv002 divide 2 1 -> 2
32 dddiv003 divide 1 2 -> 0.5
33 dddiv004 divide 2 2 -> 1
34 dddiv005 divide 0 1 -> 0
35 dddiv006 divide 0 2 -> 0
36 dddiv007 divide 1 3 -> 0.3333333333333333 Inexact Rounded
37 dddiv008 divide 2 3 -> 0.6666666666666667 Inexact Rounded
38 dddiv009 divide 3 3 -> 1
40 dddiv010 divide 2.4 1 -> 2.4
[all …]
DdqDivide.decTest30 dqdiv001 divide 1 1 -> 1
31 dqdiv002 divide 2 1 -> 2
32 dqdiv003 divide 1 2 -> 0.5
33 dqdiv004 divide 2 2 -> 1
34 dqdiv005 divide 0 1 -> 0
35 dqdiv006 divide 0 2 -> 0
36 dqdiv007 divide 1 3 -> 0.3333333333333333333333333333333333 Inexact Rounded
37 dqdiv008 divide 2 3 -> 0.6666666666666666666666666666666667 Inexact Rounded
38 dqdiv009 divide 3 3 -> 1
40 dqdiv010 divide 2.4 1 -> 2.4
[all …]
Ddivide.decTest2 -- divide.decTest -- decimal division --
29 divx001 divide 1 1 -> 1
30 divx002 divide 2 1 -> 2
31 divx003 divide 1 2 -> 0.5
32 divx004 divide 2 2 -> 1
33 divx005 divide 0 1 -> 0
34 divx006 divide 0 2 -> 0
35 divx007 divide 1 3 -> 0.333333333 Inexact Rounded
36 divx008 divide 2 3 -> 0.666666667 Inexact Rounded
37 divx009 divide 3 3 -> 1
[all …]
Dinexact.decTest123 -- divide
125 inx201 divide 1000 1000 -> 1
126 inx202 divide 1000 1 -> 1000
127 inx203 divide 1000 2 -> 500
128 inx204 divide 1000 3 -> 333.3 Inexact Rounded
129 inx205 divide 1000 4 -> 250
130 inx206 divide 1000 5 -> 200
131 inx207 divide 1000 6 -> 166.7 Inexact Rounded
132 inx208 divide 1000 7 -> 142.9 Inexact Rounded
133 inx209 divide 1000 8 -> 125
[all …]
Drounding.decTest582 rdvx101 divide 12345 1 -> 12345
583 rdvx102 divide 12345 1.0001 -> 12343 Inexact Rounded
584 rdvx103 divide 12345 1.001 -> 12332 Inexact Rounded
585 rdvx104 divide 12345 1.01 -> 12222 Inexact Rounded
586 rdvx105 divide 12345 1.1 -> 11222 Inexact Rounded
587 rdvx106 divide 12355 4 -> 3088.7 Inexact Rounded
588 rdvx107 divide 12345 4 -> 3086.2 Inexact Rounded
589 rdvx108 divide 12355 4.0001 -> 3088.6 Inexact Rounded
590 rdvx109 divide 12345 4.0001 -> 3086.1 Inexact Rounded
591 rdvx110 divide 12345 4.9 -> 2519.3 Inexact Rounded
[all …]
Drandoms.decTest32 xdiv001 divide 905.67402 -202896611.E-780472620 -> -4.46372177E+780472614 Inexact Rounded
40 xdiv002 divide 3915134.7 -597164907. -> -0.00655620358 Inexact Rounded
48 xdiv003 divide 309759261 62663.487 -> 4943.21775 Inexact Rounded
56 xdiv004 divide 3.93591888E-236595626 7242375.00 -> 5.43456930E-236595633 Inexact Rounded
64 xdiv005 divide 323902.714 -608669.607E-657060568 -> -5.32148657E+657060567 Inexact Rounded
72 xdiv006 divide 5.11970092 -8807.22036 -> -0.000581307236 Inexact Rounded
80 xdiv007 divide -7.99874516 4561.83758 -> -0.00175340420 Inexact Rounded
88 xdiv008 divide 297802878 -927206.324 -> -321.182967 Inexact Rounded
96 xdiv009 divide -766.651824 31300.3619 -> -0.0244933853 Inexact Rounded
104 xdiv010 divide -56746.8689E+934981942 471002521. -> -1.20481030E+934981938 Inexact Rounded
[all …]
DrandomBound32.decTest34 divx3001 divide 4953734675913.065314738743322579 0218.932010396534371704930714860E+797 -> 2.2626817…
42 divx3002 divide 9641.684323386955881595490347910E-844 -78864532047.12287484430980636798E+934 -> -1.…
50 divx3003 divide -1.028048571628326871054964307774E+529 49200008645699.35577937582714739 -> -2.08952…
58 divx3004 divide 479084.8561808930525417735205519 084157571054.2691784660983989931 -> 0.000005692712…
66 divx3005 divide -0363750788.573782205664349562931 -3172.080934464133691909905980096 -> 114672.60643…
74 divx3006 divide 1381026551423669919010191878449 -82.66614775445371254999357800739 -> -1670607121461…
82 divx3007 divide 4627.026960423072127953556635585 -4410583132901.830017479741231131 -> -1.0490737439…
90 divx3008 divide 75353574493.84484153484918212042 -8684111695095849922263044191221 -> -8.67717702622…
98 divx3009 divide 6907058.216435355874729592373011 2.857005446917670515662398741545 -> 2417586.646146…
106 divx3010 divide -38949530427253.24030680468677190 712168021.1265384466442576619064E-992 -> -5.46914…
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
DDfpMath.java141 result[0] = a[0].divide(b[0]); in splitDiv()
143 result[1] = result[1].divide(b[0].multiply(b[0]).add(b[0].multiply(b[1]))); in splitDiv()
199 result[0] = base[0].getOne().divide(result[0]); in splitPow()
250 result = base.getOne().divide(result); in pow()
299 fact = fact.divide(i); in expInternal()
337 x = x.divide(pow(a.newInstance(10000), lr)); /* This puts x in the range 0-10000 */ in log()
349 spx[0] = spx[0].divide(spy[0]); in log()
350 spx[1] = spx[1].divide(spy[0]); in log()
354 spx[0] = spx[0].divide(2); in log()
355 spx[1] = spx[1].divide(2); in log()
[all …]
/external/llvm/test/MC/ARM/
Ddirective-arch_extension-idiv.s27 @ CHECK-ARMv6: error: instruction requires: divide in ARM
28 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
30 @ CHECK-ARMv6: error: instruction requires: divide in ARM
31 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
44 @ CHECK-ARMv6: error: instruction requires: divide in ARM
45 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
46 @ CHECK-ARMv7: error: instruction requires: divide in ARM
47 @ CHECK-THUMBv7: error: instruction requires: divide in THUMB
49 @ CHECK-ARMv6: error: instruction requires: divide in ARM
50 @ CHECK-THUMBv6: error: instruction requires: divide in ARM arm-mode
[all …]
Dinvalid-idiv.s12 @ ARM-A15: error: instruction requires: divide in ARM
14 @ ARM-A15: error: instruction requires: divide in ARM
21 @ ARM: error: instruction requires: divide in ARM
23 @ ARM: error: instruction requires: divide in ARM
25 @ THUMB: error: instruction requires: divide in THUMB
27 @ THUMB: error: instruction requires: divide in THUMB
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DRational.java95 case 2: return process(comps.get(0)).divide(process(comps.get(1))); in parse()
132 return result.divide(den); in process2()
199 numerator = numerator.divide(gcd); in Rational()
200 denominator = denominator.divide(gcd); in Rational()
209 numerator.multiply(other.denominator).divide(gcd_den) in add()
210 .add(other.numerator.multiply(denominator).divide(gcd_den)), in add()
211 denominator.multiply(other.denominator).divide(gcd_den) in add()
218 numerator.multiply(other.denominator).divide(gcd_den) in subtract()
219 .subtract(other.numerator.multiply(denominator).divide(gcd_den)), in subtract()
220 denominator.multiply(other.denominator).divide(gcd_den) in subtract()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DBigFraction.java133 num = num.divide(gcd); in BigFraction()
134 den = den.divide(gcd); in BigFraction()
540 return new BigDecimal(numerator).divide(new BigDecimal(denominator)); in bigDecimalValue()
559 return new BigDecimal(numerator).divide(new BigDecimal(denominator), roundingMode); in bigDecimalValue()
578 return new BigDecimal(numerator).divide(new BigDecimal(denominator), scale, roundingMode); in bigDecimalValue()
612 public BigFraction divide(final BigInteger bg) { in divide() method in BigFraction
631 public BigFraction divide(final int i) { in divide() method in BigFraction
632 return divide(BigInteger.valueOf(i)); in divide()
647 public BigFraction divide(final long l) { in divide() method in BigFraction
648 return divide(BigInteger.valueOf(l)); in divide()
[all …]
/external/libaom/tools/gop_bitrate/python/
Dbitrate_accuracy.py25 R = np.divide(A, B)
41 r_ef = np.divide(r_e, r_f)
42 r_mf = np.divide(r_m, r_f)
49 divide = lambda x, y : 0 if y == 0 else x / y function
51 A = np.array([[1, divide(sum_ef_mf, sum_ef_sq)],[divide(sum_ef_mf, sum_mf_sq), 1]])
52 B = np.array([divide(sum_ef, sum_ef_sq), divide(sum_mf, sum_mf_sq)])
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedLongsTest.java176 assertEquals(2, UnsignedLongs.divide(14, 5)); in testDivide()
177 assertEquals(0, UnsignedLongs.divide(0, 50)); in testDivide()
178 assertEquals(1, UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)); in testDivide()
179 assertEquals(0, UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)); in testDivide()
180 assertEquals(281479271743488L, UnsignedLongs.divide(0xfffffffffffffffeL, 65535)); in testDivide()
181 assertEquals(0x7fffffffffffffffL, UnsignedLongs.divide(0xfffffffffffffffeL, 2)); in testDivide()
182 assertEquals(3689348814741910322L, UnsignedLongs.divide(0xfffffffffffffffeL, 5)); in testDivide()
207 - (divisor * UnsignedLongs.divide(dividend, divisor) in testDivideRemainderEuclideanProperty()
/external/guava/android/guava-tests/test/com/google/common/primitives/
DUnsignedLongsTest.java176 assertEquals(2, UnsignedLongs.divide(14, 5)); in testDivide()
177 assertEquals(0, UnsignedLongs.divide(0, 50)); in testDivide()
178 assertEquals(1, UnsignedLongs.divide(0xfffffffffffffffeL, 0xfffffffffffffffdL)); in testDivide()
179 assertEquals(0, UnsignedLongs.divide(0xfffffffffffffffdL, 0xfffffffffffffffeL)); in testDivide()
180 assertEquals(281479271743488L, UnsignedLongs.divide(0xfffffffffffffffeL, 65535)); in testDivide()
181 assertEquals(0x7fffffffffffffffL, UnsignedLongs.divide(0xfffffffffffffffeL, 2)); in testDivide()
182 assertEquals(3689348814741910322L, UnsignedLongs.divide(0xfffffffffffffffeL, 5)); in testDivide()
207 - (divisor * UnsignedLongs.divide(dividend, divisor) in testDivideRemainderEuclideanProperty()
/external/proguard/src/proguard/evaluation/value/
DDoubleValue.java96 public abstract DoubleValue divide(DoubleValue other); in divide() method in DoubleValue
179 public DoubleValue divide(SpecificDoubleValue other) in divide() method in DoubleValue
181 return divide((DoubleValue)other); in divide()
282 public DoubleValue divide(ParticularDoubleValue other) in divide() method in DoubleValue
284 return divide((SpecificDoubleValue)other); in divide()
DFloatValue.java96 public abstract FloatValue divide(FloatValue other); in divide() method in FloatValue
179 public FloatValue divide(SpecificFloatValue other) in divide() method in FloatValue
181 return divide((FloatValue)other); in divide()
282 public FloatValue divide(ParticularFloatValue other) in divide() method in FloatValue
284 return divide((SpecificFloatValue)other); in divide()
/external/crcalc/tests/src/com/hp/creals/
DSlowCRTest.java54 final static CR HALF_PI = CR.PI.divide(CR.valueOf(2));
111 check(isApprInt(tmp.subtract(x).divide(CR.PI)) in checkTrig()
112 || isApprInt(tmp.add(x).divide(CR.PI)), in checkTrig()
120 check(isApprInt(tmp.subtract(x).divide(CR.PI)) in checkTrig()
121 || isApprInt(tmp.add(x).divide(CR.PI)), in checkTrig()
142 checkEq(x.ln().divide(CR.valueOf(2)), x.sqrt().ln(), in checkExpLn()
165 checkEq(ZERO.acos(), CR.PI.divide(TWO), "acos(0)"); in testSlowTrig()
169 checkEq(ONE.asin(), CR.PI.divide(TWO), "asin(1)"); in testSlowTrig()
170 checkEq(ONE.negate().asin(), CR.PI.divide(TWO).negate(), "asin(-1)"); in testSlowTrig()

12345678910>>...31