1. 01 Jun, 2016 3 commits
  2. 31 May, 2016 2 commits
  3. 14 Oct, 2015 2 commits
  4. 13 Oct, 2015 2 commits
  5. 12 Oct, 2015 2 commits
  6. 11 Oct, 2015 18 commits
  7. 10 Oct, 2015 6 commits
  8. 09 Oct, 2015 5 commits
    • Hans Boehm's avatar
      Announce when formula has been completely deleted. · 4d63cfce
      Hans Boehm authored
      Bug: 23224425
      Bug: 23695835
      
      This adds a "cleared" announcement when last token/character is deleted.
      Also change the existing "clear" announcements to "cleared".
      
      Improve the comments for desc_clr and desc_del to address prior
      misunderstandings.
      
      Improve xml comment formatting consistency.
      
      Change-Id: Ibe5197ceac132b73d72f8ace3982238249f5e82b
      (cherry picked from commit db6f9997)
      4d63cfce
    • Hans Boehm's avatar
      Fix factorial(0) · 9ad6f6d9
      Hans Boehm authored
      Bug: 24575798
      
      Make factorial(0) return 1, as intended.
      Add a few factorial tests.
      Fix targetPackage spec so test is actually runnable again.
      
      Change-Id: Ibb8d827f0325999c6b5ed49a939e1532ddf55639
      (cherry picked from commit 69515918)
      9ad6f6d9
    • Hans Boehm's avatar
      Add docs directory and contents · 41718121
      Hans Boehm authored
      Bug: 24811759
      
      Add the following documentation files:
      
      arithmetic-overview.html describes the approach used to get "exact"
      arithmetic.
      
      implementation-overview.html outlines the major parts of the
      implementation.
      
      Change-Id: I3c8645aabbc5fb8aa894372a1eea0b5aad4a6473
      (cherry picked from commit dd895bca)
      41718121
    • Hans Boehm's avatar
      BoundedRational.java cleanup · fc8a8d3e
      Hans Boehm authored
      Bug: 24811759
      Bug: 21469726
      Bug: 23080519
      
      Reformat to 100 columns.  Reformat simple if-statements and rename
      variables for better consistency with coding conventions.
      
      Switch many comments to javadoc style.
      
      Consistently use signum() to compare to zero.  It's more concise and
      probably slightly more efficient.
      
      Change the asBigInteger implementation to use a single
      divideAndRemainder call instead of relying on gcd. Add tests.
      
      Eliminate redundant test in maybeReduce().
      
      Change-Id: I4c275494e076612d09a05bc317c9972008619cda
      (cherry picked from commit a4511f34)
      fc8a8d3e
    • Hans Boehm's avatar
      Evaluator.java and CalculatorExpr.java cleanup · b13daf10
      Hans Boehm authored
      Bug: 24811759
      Bug: 21960281
      Bug: 22047258
      
      No substantive changes.
      
      Reformat to 100 columns.
      
      Correct and/or remove obsolete comments and occasional bits of clearly
      dead code.
      
      Better follow coding conventions.
      
      Rename variables for both internal consistency and consistency with
      other files.  This included a few renamings in Calculator.java
      and CalculatorResult.java, and a comment fix in CalculatorResult.java.
      
      Rename public fields per coding convention.  Correctly declare more
      nested classes static.
      
      Document FIXME issues to be addressed in followup CL.  This includes
      a careful look at the msd computations.  I cannot construct any
      failing examples, but I also cannot currently construct a correctness
      argument.
      
      Change-Id: I5c67493eeb7730edb4b3ca3ba1cb8b7d2b87dbc2
      (cherry picked from commit abe2862b)
      b13daf10