HomeSort by relevance Sort by last modified time
    Searched refs:BoundedRational (Results 1 - 5 of 5) sorted by null

  /packages/apps/ExactCalculator/tests/src/com/android/calculator2/
BRTest.java 35 private static void checkEq(BoundedRational x, CR y, String s) {
38 private static void checkWeakEq(BoundedRational x, CR y, String s) {
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)
    [all...]
  /packages/apps/ExactCalculator/src/com/android/calculator2/
BoundedRational.java 27 * We currently never return null for a pure integer or for a BoundedRational that has just been
33 public class BoundedRational {
43 public BoundedRational(BigInteger n, BigInteger d) {
48 public BoundedRational(BigInteger n) {
53 public BoundedRational(long n, long d) {
58 public BoundedRational(long n) {
77 BoundedRational nicer = reduce().positiveDen();
85 public static String toString(BoundedRational r) {
119 private BoundedRational positiveDen() {
123 return new BoundedRational(mNum.negate(), mDen.negate())
    [all...]
CalculatorExpr.java 45 * producing both a constructive real (CR), and possibly a BoundedRational result.
220 * Return BoundedRational representation of constant, if well-formed.
223 public BoundedRational toRational() throws SyntaxException {
241 return new BoundedRational(num, den);
299 * The representation includes both CR and possibly BoundedRational values. In order to
306 public final BoundedRational ratValue;
310 PreEval(CR val, BoundedRational ratVal, CalculatorExpr expr,
622 public CalculatorExpr abbreviate(CR val, BoundedRational ratVal,
633 * We compute rational (BoundedRational) results when possible, both as a performance
639 public final BoundedRational ratVal; // Exact Rational value or null
    [all...]
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) {
216 ratVal = BoundedRational.ZERO;
355 if (BoundedRational.asBigInteger(res.ratVal) == null
373 } catch (BoundedRational.ZeroDivisionException e) {
554 int getLsdOffset(BoundedRational ratVal, String cache, int decIndex) {
556 int result = BoundedRational.digitsRequired(ratVal);
    [all...]
Calculator.java     [all...]

Completed in 76 milliseconds