Home
last modified time | relevance | path

Searched refs:fraction (Results 1 – 25 of 75) sorted by relevance

123

/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java17 package org.apache.commons.math.fraction;
430 public Fraction add(Fraction fraction) { in add() argument
431 return addSub(fraction, true /* add */); in add()
453 public Fraction subtract(Fraction fraction) { in subtract() argument
454 return addSub(fraction, false /* subtract */); in subtract()
476 private Fraction addSub(Fraction fraction, boolean isAdd) { in addSub() argument
477 if (fraction == null) { in addSub()
482 return isAdd ? fraction : fraction.negate(); in addSub()
484 if (fraction.numerator == 0) { in addSub()
489 int d1 = MathUtils.gcd(denominator, fraction.denominator); in addSub()
[all …]
DBigFraction.java17 package org.apache.commons.math.fraction;
505 public BigFraction add(final BigFraction fraction) { in add() argument
506 if (fraction == null) { in add()
509 if (ZERO.equals(fraction)) { in add()
516 if (denominator.equals(fraction.denominator)) { in add()
517 num = numerator.add(fraction.numerator); in add()
520 … num = (numerator.multiply(fraction.denominator)).add((fraction.numerator).multiply(denominator)); in add()
521 den = denominator.multiply(fraction.denominator); in add()
662 public BigFraction divide(final BigFraction fraction) { in divide() argument
663 if (fraction == null) { in divide()
[all …]
DProperBigFractionFormat.java17 package org.apache.commons.math.fraction;
89 public StringBuffer format(final BigFraction fraction, in format() argument
95 BigInteger num = fraction.getNumerator(); in format()
96 BigInteger den = fraction.getDenominator(); in format()
DProperFractionFormat.java17 package org.apache.commons.math.fraction;
90 public StringBuffer format(Fraction fraction, StringBuffer toAppendTo, in format() argument
96 int num = fraction.getNumerator(); in format()
97 int den = fraction.getDenominator(); in format()
DFractionFormat.java18 package org.apache.commons.math.fraction;
144 public StringBuffer format(final Fraction fraction, in format() argument
150 getNumeratorFormat().format(fraction.getNumerator(), toAppendTo, pos); in format()
152 getDenominatorFormat().format(fraction.getDenominator(), toAppendTo, in format()
DFractionConversionException.java18 package org.apache.commons.math.fraction;
DFractionField.java18 package org.apache.commons.math.fraction;
DBigFractionField.java18 package org.apache.commons.math.fraction;
/external/icu/icu4c/source/data/rbnf/
Dpl.txt56 "x.x: << przecinek >%%spellout-fraction>;",
62 "x.x: << przecinek >%%spellout-fraction>;",
84 "%%spellout-fraction:",
85 "10: <%%spellout-fraction-digits<<;",
86 "100: <%%spellout-fraction-digits<<;",
87 "1000: <%%spellout-fraction-digits<<;",
88 "10000: <%%spellout-fraction-digits<<;",
89 "100000: <%%spellout-fraction-digits<<;",
90 "1000000: <%%spellout-fraction-digits<<;",
91 "10000000: <%%spellout-fraction-digits<<;",
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DPixelUtils.java123 public static float fractionToPixH(float fraction) { in fractionToPixH() argument
124 return metrics.heightPixels * fraction; in fractionToPixH()
133 public static float fractionToPixW(float fraction) { in fractionToPixW() argument
134 return metrics.widthPixels * fraction; in fractionToPixW()
/external/tcpdump/
Dntp.h32 u_int32_t fraction; member
37 u_int16_t fraction; member
Dprint-ntp.c212 f = EXTRACT_16BITS(&sfp->fraction); in p_sfix()
229 uf = EXTRACT_32BITS(&lfp->fraction); in p_ntp_time()
267 uf = EXTRACT_32BITS(&lfp->fraction); in p_ntp_delta()
268 ouf = EXTRACT_32BITS(&olfp->fraction); in p_ntp_delta()
/external/linux-tools-perf/src/tools/perf/ui/gtk/
Dprogress.c12 double fraction = total ? 1.0 * curr / total : 0.0; in gtk_progress_update() local
34 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), fraction); in gtk_progress_update()
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/
DBeta.java129 ContinuedFraction fraction = new ContinuedFraction() { in regularizedBeta() local
154 1.0 / fraction.evaluate(x, epsilon, maxIterations); in regularizedBeta()
/external/toybox/lib/
Dxwrap.c627 long xparsetime(char *arg, long units, long *fraction) in xparsetime() argument
646 if (fraction) *fraction = units*(d-l); in xparsetime()
647 } else if (fraction) *fraction = 0; in xparsetime()
/external/skia/src/utils/
DSkInterpolator.cpp81 SkScalar fraction = SkScalarFraction(fRepeat); in timeToT() local
82 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime : in timeToT()
83 (SkMSec) SkScalarFloorToInt(fraction * totalTime); in timeToT()
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
Dpitch_filter.c216 double fraction; in Update() local
222 fraction = parameters->lag_offset - (parameters->lag + PITCH_FILTDELAY); in Update()
223 fraction_index = WebRtcIsac_lrint(PITCH_FRACS * fraction - 0.5); in Update()
/external/skia/src/animator/
DSkDrawColor.cpp73 SkScalar fraction = hue / 60 - SkIntToScalar(sextant); in HSV_to_RGB() local
75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction)); in HSV_to_RGB()
77 SkScalarMul(saturation, SK_Scalar1 - fraction)); in HSV_to_RGB()
/external/sonivox/arm-hybrid-22k/lib_src/
Deas_chorus.c200 EAS_I16 fraction; in WeightedTap() local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part in WeightedTap()
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction)); in WeightedTap()
/external/sonivox/arm-wt-22k/lib_src/
Deas_chorus.c200 EAS_I16 fraction; in WeightedTap() local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part in WeightedTap()
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction)); in WeightedTap()
/external/sonivox/arm-fm-22k/lib_src/
Deas_chorus.c200 EAS_I16 fraction; in WeightedTap() local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part in WeightedTap()
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction)); in WeightedTap()
/external/crcalc/src/com/hp/creals/
DCR.java547 String fraction; in valueOf() local
553 fraction = "0"; in valueOf()
555 fraction = s.substring(point_pos + 1, len); in valueOf()
558 BigInteger scaled_result = new BigInteger(whole + fraction, radix); in valueOf()
559 BigInteger divisor = BigInteger.valueOf(radix).pow(fraction.length()); in valueOf()
592 String fraction = scaled_string.substring(len - n); in toString() local
593 result = whole + "." + fraction; in toString()
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
DMathUtils.java1560 double fraction = unscaled - FastMath.floor(unscaled);
1561 if (fraction > 0.5) {
1569 double fraction = unscaled - FastMath.floor(unscaled);
1570 if (fraction > 0.5) {
1572 } else if (fraction < 0.5) {
1587 double fraction = unscaled - FastMath.floor(unscaled);
1588 if (fraction >= 0.5) {
/external/libxml2/
Dtrionan.c409 double integral, fraction;
423 (fraction = modf(number, &integral),
424 integral == fraction)));
/external/llvm/test/CodeGen/R600/
Dllvm.AMDGPU.fract.ll10 declare float @llvm.AMDIL.fraction.f32(float) nounwind readnone
33 %fract = call float @llvm.AMDIL.fraction.f32(float %val) nounwind readnone

123