/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/ |
D | Fraction.java | 87 private final int denominator; field in Fraction 189 this.denominator = 1; in Fraction() 232 this.denominator = (int) q2; in Fraction() 235 this.denominator = (int) q1; in Fraction() 282 this.denominator = den; in Fraction() 306 long nOd = ((long) numerator) * object.denominator; in compareTo() 307 long dOn = ((long) denominator) * object.numerator; in compareTo() 318 return (double)numerator / (double)denominator; in doubleValue() 340 (denominator == rhs.denominator); in equals() 360 return denominator; in getDenominator() [all …]
|
D | BigFraction.java | 92 private final BigInteger denominator; field in BigFraction 127 denominator = BigInteger.ONE; in BigFraction() 145 denominator = den; in BigFraction() 199 denominator = BigInteger.ZERO.flipBit(-k); in BigFraction() 202 denominator = BigInteger.ONE; in BigFraction() 282 denominator = BigInteger.ONE; in BigFraction() 327 denominator = BigInteger.valueOf(q2); in BigFraction() 330 denominator = BigInteger.valueOf(q1); in BigFraction() 431 final int denominator) { in getReducedFraction() argument 436 return new BigFraction(numerator, denominator); in getReducedFraction() [all …]
|
/external/v8/src/ |
D | bignum-dtoa.cc | 36 Bignum* denominator, 46 Bignum* numerator, Bignum* denominator, 50 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 56 Bignum* numerator, Bignum* denominator, 63 Bignum* numerator, Bignum* denominator, 93 Bignum denominator; in BignumDtoa() local 103 &numerator, &denominator, in BignumDtoa() 107 &numerator, &denominator, in BignumDtoa() 113 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa() 119 &numerator, &denominator, in BignumDtoa() [all …]
|
/external/python/cpython2/Lib/ |
D | fractions.py | 68 def __new__(cls, numerator=0, denominator=None): argument 101 if denominator is None: 104 self._denominator = numerator.denominator 129 denominator = int(denom) 131 denominator = 1 136 denominator *= scale 143 denominator *= 10**-exp 152 isinstance(denominator, Rational)): 153 numerator, denominator = ( 154 numerator.numerator * denominator.denominator, [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/ |
D | LongMath.java | 233 long denominator = 1; in binomial() local 247 denominator *= i; in binomial() 252 result = multiplyFraction(result, numerator, denominator); in binomial() 254 denominator = i; in binomial() 258 return multiplyFraction(result, numerator, denominator); in binomial() 266 static long multiplyFraction(long x, long numerator, long denominator) { in multiplyFraction() argument 268 return numerator / denominator; in multiplyFraction() 270 long commonDivisor = gcd(x, denominator); in multiplyFraction() 272 denominator /= commonDivisor; in multiplyFraction() 275 return x * (numerator / denominator); in multiplyFraction()
|
/external/libtextclassifier/common/ |
D | softmax.cc | 44 float denominator = 1.0f; // Contribution of i == label. in ComputeSoftmaxProbability() local 68 denominator += VeryFastExp(delta_score); in ComputeSoftmaxProbability() 70 return 1.0f / denominator; in ComputeSoftmaxProbability() 84 float denominator = 0; in ComputeSoftmax() local 90 denominator += exp_score; in ComputeSoftmax() 94 softmax.push_back(exp_scores[i] / denominator); in ComputeSoftmax()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 183 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument 187 numerator / denominator : in floorDivide() 188 ((numerator + 1) / denominator) - 1; in floorDivide() 191 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument 193 remainder[0] = numerator % denominator; in floorDivide() 194 return numerator / denominator; in floorDivide() 196 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() 197 remainder[0] = numerator - (quotient * denominator); in floorDivide()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 185 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument 189 numerator / denominator : in floorDivide() 190 ((numerator + 1) / denominator) - 1; in floorDivide() 193 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument 195 remainder[0] = numerator % denominator; in floorDivide() 196 return numerator / denominator; in floorDivide() 198 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() 199 remainder[0] = numerator - (quotient * denominator); in floorDivide()
|
/external/clang/test/CodeGen/ |
D | exceptions-seh.c | 10 void try_body(int numerator, int denominator, int *myres) { in try_body() argument 11 *myres = numerator / denominator; in try_body() 18 int safe_div(int numerator, int denominator, int *res) { in safe_div() argument 22 try_body(numerator, denominator, &myres); in safe_div()
|
/external/icu/icu4c/source/i18n/ |
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument 27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 30 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument 33 quotient = uprv_floor(numerator / denominator); in floorDivide() 34 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static inline double floorDivide(double numerator, double denominator); 69 static int32_t floorDivide(double numerator, int32_t denominator, 256 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument 257 return uprv_floor(numerator / denominator); in floorDivide()
|
/external/protobuf/src/google/protobuf/stubs/ |
D | int128.cc | 101 uint128 denominator = divisor; in DivModImpl() local 106 int shift = Fls128(dividend) - Fls128(denominator); in DivModImpl() 107 denominator <<= shift; in DivModImpl() 113 if (dividend >= denominator) { in DivModImpl() 114 dividend -= denominator; in DivModImpl() 118 denominator >>= 1; in DivModImpl()
|
/external/guava/guava/src/com/google/common/math/ |
D | LongMath.java | 678 long denominator = 1; 692 denominator *= i; 697 result = multiplyFraction(result, numerator, denominator); 699 denominator = i; 703 return multiplyFraction(result, numerator, denominator); 711 static long multiplyFraction(long x, long numerator, long denominator) { 713 return numerator / denominator; 715 long commonDivisor = gcd(x, denominator); 717 denominator /= commonDivisor; 720 return x * (numerator / denominator);
|
/external/piex/src/tiff_directory/ |
D | tiff_directory.cc | 132 my_value[c].denominator = 1; in Get() 137 my_value[c].denominator = 1; in Get() 142 my_value[c].denominator = in Get() 144 if (my_value[c].denominator == 0) { in Get() 187 my_value[c].denominator = 1; in Get() 192 my_value[c].denominator = 1; in Get() 197 my_value[c].denominator = in Get() 199 if (my_value[c].denominator == 0) { in Get()
|
/external/libexif/libexif/ |
D | exif-entry.c | 296 r.denominator = (ExifLong) sr.denominator; in exif_entry_fix() 329 sr.denominator = (ExifLong) r.denominator; in exif_entry_fix() 539 if (v_rat.denominator) { in exif_entry_format_value() 546 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value() 550 (double) v_rat.denominator); in exif_entry_format_value() 554 (unsigned long) v_rat.denominator); in exif_entry_format_value() 568 if (v_srat.denominator) { in exif_entry_format_value() 569 int decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value() 573 (double) v_srat.denominator); in exif_entry_format_value() 577 (long) v_srat.denominator); in exif_entry_format_value() [all …]
|
D | exif-utils.c | 182 r.denominator = buf ? exif_get_slong (buf + 4, order) : 0; in exif_get_srational() 193 r.denominator = buf ? exif_get_long (buf + 4, order) : 0; in exif_get_rational() 204 exif_set_long (buf + 4, order, value.denominator); in exif_set_rational() 213 exif_set_slong (buf + 4, order, value.denominator); in exif_set_srational()
|
/external/libexif/libexif/fuji/ |
D | mnote-fuji-entry.c | 262 if (!vr.denominator) break; in mnote_fuji_entry_get_value() 264 vr.denominator); in mnote_fuji_entry_get_value() 286 if (!vr.denominator) break; in mnote_fuji_entry_get_value() 288 vr.denominator); in mnote_fuji_entry_get_value() 292 if (!vsr.denominator) break; in mnote_fuji_entry_get_value() 294 vsr.denominator); in mnote_fuji_entry_get_value()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/ |
D | DividedDifferenceInterpolator.java | 105 final double denominator = x[j+i] - x[j]; in computeDividedDifference() local 106 if (denominator == 0.0) { in computeDividedDifference() 110 divdiff[j] = (divdiff[j+1] - divdiff[j]) / denominator; in computeDividedDifference()
|
/external/ltp/testcases/kernel/device-drivers/v4l/user_space/ |
D | test_VIDIOC_PARM.c | 111 parm.parm.capture.timeperframe.denominator, in do_get_param() 130 denominator != 0); in do_get_param() 136 denominator != 0); in do_get_param() 160 parm.parm.output.timeperframe.denominator, in do_get_param() 178 denominator != 0); in do_get_param() 184 denominator != 0); in do_get_param()
|
/external/python/cpython2/Doc/library/ |
D | fractions.rst | 20 .. class:: Fraction(numerator=0, denominator=1) 26 The first version requires that *numerator* and *denominator* are instances 28 with value ``numerator/denominator``. If *denominator* is :const:`0`, it 41 [sign] numerator ['/' denominator] 44 ``numerator`` and ``denominator`` (if present) are strings of 111 denominator at most max_denominator. This method is useful for finding
|
D | numbers.rst | 61 :attr:`~Rational.numerator` and :attr:`~Rational.denominator` properties, which 69 .. attribute:: denominator 78 :attr:`~Rational.denominator`. Adds abstract methods for ``**`` and 91 if self.denominator == 1: 100 return hash((self.numerator, self.denominator)) 214 return Fraction(a.numerator * b.denominator + 215 b.numerator * a.denominator, 216 a.denominator * b.denominator)
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | NFSubstitution.java | 1430 private final double denominator; field in NumeratorSubstitution 1447 double denominator, in NumeratorSubstitution() argument 1455 this.denominator = denominator; in NumeratorSubstitution() 1478 return denominator == that2.denominator && withZeros == that2.withZeros; in equals() 1508 while ((nf *= 10) < denominator) { in doSubstitution() 1538 return Math.round(number * denominator); in transformNumber() 1547 return Math.round(number * denominator); in transformNumber() 1636 return denominator; in calcUpperBound()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | NFSubstitution.java | 1429 private final double denominator; field in NumeratorSubstitution 1446 double denominator, in NumeratorSubstitution() argument 1454 this.denominator = denominator; in NumeratorSubstitution() 1477 return denominator == that2.denominator && withZeros == that2.withZeros; in equals() 1507 while ((nf *= 10) < denominator) { in doSubstitution() 1537 return Math.round(number * denominator); in transformNumber() 1546 return Math.round(number * denominator); in transformNumber() 1635 return denominator; in calcUpperBound()
|
/external/clang/tools/scan-build-py/tests/functional/src/ |
D | emit-one.c | 3 int div(int numerator, int denominator) in div() argument 5 return numerator / denominator; in div()
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/ |
D | MullerSolver.java | 369 final double denominator; in solve2() local 374 denominator = FastMath.abs(dplus) > FastMath.abs(dminus) ? dplus : dminus; in solve2() 377 denominator = FastMath.sqrt(b * b - delta); in solve2() 379 if (denominator != 0) { in solve2() 380 x = x2 - 2.0 * c * (x2 - x1) / denominator; in solve2()
|