Searched refs:fraction (Results 1 - 25 of 53) sorted by relevance

123

/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
H A DFraction.java17 package org.apache.commons.math.fraction;
41 /** A fraction representing "2 / 1". */
44 /** A fraction representing "1". */
47 /** A fraction representing "0". */
50 /** A fraction representing "4/5". */
53 /** A fraction representing "1/5". */
56 /** A fraction representing "1/2". */
59 /** A fraction representing "1/4". */
62 /** A fraction representing "1/3". */
65 /** A fraction representin
430 add(Fraction fraction) argument
453 subtract(Fraction fraction) argument
476 addSub(Fraction fraction, boolean isAdd) argument
533 multiply(Fraction fraction) argument
568 divide(Fraction fraction) argument
[all...]
H A DBigFractionField.java18 package org.apache.commons.math.fraction;
H A DFractionConversionException.java18 package org.apache.commons.math.fraction;
24 * Error thrown when a double value cannot be converted to a fraction
H A DFractionField.java18 package org.apache.commons.math.fraction;
H A DBigFraction.java17 package org.apache.commons.math.fraction;
40 /** A fraction representing "2 / 1". */
43 /** A fraction representing "1". */
46 /** A fraction representing "0". */
49 /** A fraction representing "-1 / 1". */
52 /** A fraction representing "4/5". */
55 /** A fraction representing "1/5". */
58 /** A fraction representing "1/2". */
61 /** A fraction representing "1/4". */
64 /** A fraction representin
505 add(final BigFraction fraction) argument
662 divide(final BigFraction fraction) argument
893 multiply(final BigFraction fraction) argument
1081 subtract(final BigFraction fraction) argument
[all...]
H A DFractionFormat.java18 package org.apache.commons.math.fraction;
84 * @return A formatted fraction in proper form.
127 * customizing is the maximum number of fraction digits, which is set to 0.
135 * Formats a {@link Fraction} object to produce a string. The fraction is
138 * @param fraction the object to format.
144 public StringBuffer format(final Fraction fraction, argument
150 getNumeratorFormat().format(fraction.getNumerator(), toAppendTo, pos);
152 getDenominatorFormat().format(fraction.getDenominator(), toAppendTo,
216 * expects the string to be formatted as an improper fraction.
244 // return num as a fraction
[all...]
H A DProperBigFractionFormat.java17 package org.apache.commons.math.fraction;
82 * @param fraction the object to format.
89 public StringBuffer format(final BigFraction fraction, argument
95 BigInteger num = fraction.getNumerator();
96 BigInteger den = fraction.getDenominator();
H A DProperFractionFormat.java17 package org.apache.commons.math.fraction;
80 * Formats a {@link Fraction} object to produce a string. The fraction
83 * @param fraction the object to format.
90 public StringBuffer format(Fraction fraction, StringBuffer toAppendTo, argument
96 int num = fraction.getNumerator();
97 int den = fraction.getDenominator();
124 * expects the string to be formatted as a proper fraction.
136 // try to parse improper fraction
182 // return num as a fraction
H A DAbstractFormat.java18 package org.apache.commons.math.fraction;
178 * Formats a double value as a fraction and appends the result to a StringBuffer.
195 * Formats a long value as a fraction and appends the result to a StringBuffer.
/external/tcpdump/
H A Dntp.h32 u_int32_t fraction; member in struct:l_fixedpt
37 u_int16_t fraction; member in struct:s_fixedpt
H A Dprint-ntp.c212 f = EXTRACT_16BITS(&sfp->fraction);
214 f = ff * 1000000.0; /* Treat fraction as parts per million */
229 uf = EXTRACT_32BITS(&lfp->fraction);
234 f = ff * 1000000000.0; /* treat fraction as parts per billion */
267 uf = EXTRACT_32BITS(&lfp->fraction);
268 ouf = EXTRACT_32BITS(&olfp->fraction);
301 f = ff * 1000000000.0; /* treat fraction as parts per billion */
/external/linux-tools-perf/src/tools/perf/ui/gtk/
H A Dprogress.c12 double fraction = total ? 1.0 * curr / total : 0.0; local
34 gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress), fraction); local
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
H A DPixelUtils.java120 * @param fraction A float value between 0 and 1.
121 * @return Number of pixels fraction represents on the current device's display.
123 public static float fractionToPixH(float fraction) { argument
124 return metrics.heightPixels * fraction;
130 * @param fraction A float value between 0 and 1.
131 * @return Number of pixels fraction represents on the current device's display.
133 public static float fractionToPixW(float fraction) { argument
134 return metrics.widthPixels * fraction;
/external/apache-commons-math/src/main/java/org/apache/commons/math/special/
H A DBeta.java129 ContinuedFraction fraction = new ContinuedFraction() {
154 1.0 / fraction.evaluate(x, epsilon, maxIterations);
/external/skia/src/utils/
H A DSkInterpolator.cpp81 SkScalar fraction = SkScalarFraction(fRepeat); local
82 offsetTime = fraction == 0 && fRepeat > 0 ? totalTime :
83 (SkMSec) SkScalarFloorToInt(fraction * totalTime);
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/
H A Dpitch_filter.c216 double fraction; local
222 fraction = parameters->lag_offset - (parameters->lag + PITCH_FILTDELAY);
223 fraction_index = WebRtcIsac_lrint(PITCH_FRACS * fraction - 0.5);
/external/skia/src/animator/
H A DSkDrawColor.cpp71 //SkScalar fraction = SkScalarMod(hue, 60 * SK_Scalar1);
73 SkScalar fraction = hue / 60 - SkIntToScalar(sextant); local
75 SkScalar q = SkScalarMul(value, SK_Scalar1 - SkScalarMul(saturation, fraction));
77 SkScalarMul(saturation, SK_Scalar1 - fraction));
/external/sonivox/arm-fm-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/sonivox/arm-hybrid-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/sonivox/arm-wt-22k/lib_src/
H A Deas_chorus.c127 //convert depth from steps of .05 ms, to samples, with 16 bit whole part, discard fraction
151 //16 bit whole part, 16 bit fraction
189 * indexDesired: the fractional index we are looking up (16 bits index + 16 bits fraction)
200 EAS_I16 fraction; local
208 fraction = (EAS_I16)((indexDesired>>1) & 0x07FFF); //just use 15 bits of fractional part
231 //compute linear interpolation as (val1 + ((val2-val1)*fraction))
232 return(val1 + (EAS_I16)MULT_EG1_EG1(val2-val1,fraction));
/external/toybox/lib/
H A Dxwrap.c627 long xparsetime(char *arg, long units, long *fraction) argument
646 if (fraction) *fraction = units*(d-l);
647 } else if (fraction) *fraction = 0;
/external/apache-commons-math/src/main/java/org/apache/commons/math/util/
H A 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/crcalc/src/com/hp/creals/
H A DCR.java547 String fraction;
553 fraction = "0";
555 fraction = s.substring(point_pos + 1, len);
558 BigInteger scaled_result = new BigInteger(whole + fraction, radix);
559 BigInteger divisor = BigInteger.valueOf(radix).pow(fraction.length());
592 String fraction = scaled_string.substring(len - n);
593 result = whole + "." + fraction;
/external/libxml2/
H A Dtrionan.c409 double integral, fraction;
423 (fraction = modf(number, &integral),
424 integral == fraction)));
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/polynomials/
H A DPolynomialsUtils.java21 import org.apache.commons.math.fraction.BigFraction;

Completed in 4528 milliseconds

123