Home
last modified time | relevance | path

Searched refs:exp (Results 1 – 22 of 22) sorted by relevance

/packages/apps/ExactCalculator/src/com/android/calculator2/
DBoundedRational.java446 private BoundedRational pow(BigInteger exp) { in pow() argument
447 if (exp.signum() < 0) { in pow()
448 return inverse(pow(exp.negate())); in pow()
450 if (exp.equals(BigInteger.ONE)) { in pow()
453 if (exp.and(BigInteger.ONE).intValue() == 1) { in pow()
454 return multiply(pow(exp.subtract(BigInteger.ONE)), this); in pow()
456 if (exp.signum() == 0) { in pow()
459 BoundedRational tmp = pow(exp.shiftRight(1)); in pow()
466 public static BoundedRational pow(BoundedRational base, BoundedRational exp) { in pow() argument
467 if (exp == null) { in pow()
[all …]
DCalculatorExpr.java176 public void addExponent(int exp) { in addExponent() argument
178 mExponent = exp; in addExponent()
511 void addExponent(int exp) { in addExponent() argument
513 ((Constant) lastTok).addExponent(exp); in addExponent()
813 ratVal = BoundedRational.exp(argVal.ratVal); in evalUnary()
817 return new EvalRet(argVal.pos, argVal.val.exp(), null); in evalUnary()
875 private static CR pow(CR base, BigInteger exp) { in pow() argument
876 if (exp.compareTo(BigInteger.ZERO) < 0) { in pow()
877 return pow(base, exp.negate()).inverse(); in pow()
879 if (exp.equals(BigInteger.ONE)) { in pow()
[all …]
DCalculatorResult.java211 private final int expLen(int exp) { in expLen() argument
212 if (exp == 0) return 0; in expLen()
213 final int abs_exp_digits = (int) Math.ceil(Math.log10(Math.abs((double)exp)) in expLen()
215 return abs_exp_digits + (exp >= 0 ? 1 : 2); in expLen()
DEvaluator.java1153 int exp = 0; in addExponent() local
1162 exp = 10 * exp + Character.digit(s.charAt(i), 10); in addExponent()
1164 mExpr.addExponent(sign * exp); in addExponent()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DScroller.java395 mDuration = (int) (1000.0 * Math.exp(l / (DECELERATION_RATE - 1.0))); in fling()
404 (int) (ALPHA * Math.exp(DECELERATION_RATE / (DECELERATION_RATE - 1.0) * l)); in fling()
426 x -= (1.0f - (float)Math.exp(-x)); in viscousFluid()
429 x = 1.0f - (float)Math.exp(1.0f - x); in viscousFluid()
DOverScroller.java791 return mFlingFriction * PHYSICAL_COEF * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
798 return (int) (1000.0 * Math.exp(l / decelMinusOne)); in getSplineFlingDuration()
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/
DBRTest.java97 checkWeakEq(BoundedRational.exp(x), xAsCR.exp(), "exp:" + x); in checkBR()
99 CR.valueOf(15).ln().multiply(xAsCR).exp(), in checkBR()
123 xAsCR.ln().multiply(CR.valueOf(15)).exp(), in checkBR()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherScroller.java465 return (int) (1000.0 * Math.exp(l / decelMinusOne)); in getSplineFlingDuration()
471 return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
478 x -= (1.0f - (float)Math.exp(-x)); in viscousFluid()
481 x = 1.0f - (float)Math.exp(1.0f - x); in viscousFluid()
/packages/apps/DeskClock/src/com/android/deskclock/widget/sgv/
DOverScrollerSGV.java790 … return mFlingFriction * mPhysicalCoeff * Math.exp(DECELERATION_RATE / decelMinusOne * l); in getSplineFlingDistance()
797 return (int) (1000.0 * Math.exp(l / decelMinusOne)); in getSplineFlingDuration()
/packages/apps/Gallery2/jni/filters/
Dvibrance.c42 float sx = (float)(Vib/(1+exp(-red*3))); in JNIFUNCF()
Dedge.c96 float ret = 1.0f - exp (- alpha * pow(mag, beta)); in JNIFUNCF()
/packages/apps/Launcher2/src/com/android/launcher2/
DSmoothPagedView.java175 final float e = (float) Math.exp((now - mSmoothingTime) / SMOOTHING_CONSTANT); in computeScroll()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPaper.java82 (1 / (1 + (float) Math.exp(-t * ROTATE_FACTOR)) - 0.5f) * 2 * -45; in getTransform()
/packages/apps/Camera2/src/com/android/camera/util/
DCameraUtil.java882 float ex = (float) Math.exp(-(i - mid) * (i - mid) / (mid * mid)) in getGaussianMask()
/packages/inputmethods/LatinIME/dictionaries/
Dfr_wordlist.combined.gz1dictionary=main:fr,locale=fr,description=Français,date=1414726264, ...
Dpt_BR_wordlist.combined.gz
Des_wordlist.combined.gz
Dpt_PT_wordlist.combined.gz
Den_US_wordlist.combined.gz
Den_GB_wordlist.combined.gz
Dit_wordlist.combined.gz
Den_wordlist.combined.gz1dictionary=main:en,locale=en,description=English,date=1414726273, ...