Searched refs:BoundedRational (Results 1 – 7 of 7) sorted by relevance
/packages/apps/ExactCalculator/tests/src/com/android/calculator2/ |
D | BRTest.java | 35 private static void checkEq(BoundedRational x, CR y, String s) { in checkEq() 38 private static void checkWeakEq(BoundedRational x, CR y, String s) { in checkWeakEq() 46 private final static BoundedRational BR_0 = new BoundedRational(0); 47 private final static BoundedRational BR_M1 = new BoundedRational(-1); 48 private final static BoundedRational BR_2 = new BoundedRational(2); 49 private final static BoundedRational BR_M2 = new BoundedRational(-2); 50 private final static BoundedRational BR_15 = new BoundedRational(15); 51 private final static BoundedRational BR_390 = new BoundedRational(390); 52 private final static BoundedRational BR_M390 = new BoundedRational(-390); 68 private static void checkBR(BoundedRational x) { in checkBR() [all …]
|
/packages/apps/ExactCalculator/src/com/android/calculator2/ |
D | BoundedRational.java | 33 public class BoundedRational { class 43 public BoundedRational(BigInteger n, BigInteger d) { in BoundedRational() method in BoundedRational 48 public BoundedRational(BigInteger n) { in BoundedRational() method in BoundedRational 53 public BoundedRational(long n, long d) { in BoundedRational() method in BoundedRational 58 public BoundedRational(long n) { in BoundedRational() method in BoundedRational 77 BoundedRational nicer = reduce().positiveDen(); in toNiceString() 85 public static String toString(BoundedRational r) { in toString() 119 private BoundedRational positiveDen() { in positiveDen() 123 return new BoundedRational(mNum.negate(), mDen.negate()); in positiveDen() 130 private BoundedRational reduce() { in reduce() [all …]
|
D | CalculatorExpr.java | 223 public BoundedRational toRational() throws SyntaxException { in toRational() 241 return new BoundedRational(num, den); in toRational() 306 public final BoundedRational ratValue; 310 PreEval(CR val, BoundedRational ratVal, CalculatorExpr expr, in PreEval() 622 public CalculatorExpr abbreviate(CR val, BoundedRational ratVal, in abbreviate() 639 public final BoundedRational ratVal; // Exact Rational value or null. 640 EvalRet(int p, CR v, BoundedRational r) { in EvalRet() 722 BoundedRational ratVal; in evalUnary() 744 ratVal = BoundedRational.sqrt(BoundedRational.negate(argVal.ratVal)); in evalUnary() 752 ratVal = BoundedRational.sqrt(argVal.ratVal); in evalUnary() [all …]
|
D | Evaluator.java | 156 private BoundedRational mRatVal; // Value of mExpr as rational or null. 201 public final BoundedRational ratVal; // Rational value or null. 205 InitialResult(CR v, BoundedRational rv, String s, int p, int idp) { in InitialResult() 216 ratVal = BoundedRational.ZERO; in InitialResult() 355 if (BoundedRational.asBigInteger(res.ratVal) == null in doInBackground() 373 } catch (BoundedRational.ZeroDivisionException e) { in doInBackground() 554 int getLsdOffset(BoundedRational ratVal, String cache, int decIndex) { in getLsdOffset() 556 int result = BoundedRational.digitsRequired(ratVal); in getLsdOffset() 836 public BoundedRational getRational() { in getRational()
|
D | Calculator.java | 908 BoundedRational result = mEvaluator.getRational(); in displayFraction()
|
/packages/apps/ExactCalculator/ |
D | proguard.flags | 54 # Some small BoundedRational methods like equals() are not used by the 56 -keepclassmembers class com.android.calculator2.BoundedRational { *; }
|
/packages/apps/ExactCalculator/tests/ |
D | README.txt | 20 computations, and bugs in BoundedRational could result in incorrect
|