diff options
author | Hans Boehm <hboehm@google.com> | 2015-05-31 12:19:05 -0700 |
---|---|---|
committer | Hans Boehm <hboehm@google.com> | 2015-06-02 11:51:09 -0700 |
commit | 4db31b490443e4454d98a5ae2bc44b87149accfe (patch) | |
tree | 9843640804505c092ea1f883928b5871f7b56591 /proguard.flags | |
parent | e125edff83b7f73cadaa7a0a007cccec6bd059b2 (diff) | |
download | android_packages_apps_ExactCalculator-4db31b490443e4454d98a5ae2bc44b87149accfe.tar.gz android_packages_apps_ExactCalculator-4db31b490443e4454d98a5ae2bc44b87149accfe.tar.bz2 android_packages_apps_ExactCalculator-4db31b490443e4454d98a5ae2bc44b87149accfe.zip |
Implement percent and new inverse functions
Bug: 21493470
Add x^2 10^x and e^x functions, to make the recently added INV key
work as expected.
Implement % functionality.
10^x is essentially just macro expansions for now.
% and x^2 need trivial evaluator support to provide reasonable display
syntax.
We decided to add evaluator support for exp() as well.
Add corresponding exp() support to BoundedRational and its tests.
Tiny incidental changes for problems uncovered in the process:
Fix bug in tests/README.txt
Evaluate the constant e only once.
Add one more power test along with the exp() test.
Fix proguard.flags so BRTest runs again.
Change-Id: I26cfcaf6d99aeec11387297cc5586e2ddcab6add
Diffstat (limited to 'proguard.flags')
-rw-r--r-- | proguard.flags | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/proguard.flags b/proguard.flags index 1185cca..0fa387a 100644 --- a/proguard.flags +++ b/proguard.flags @@ -54,3 +54,5 @@ # Some small BoundedRational methods like equals() are not used by the # calculator, but crucial for testing. -keepclassmembers class com.android.calculator2.BoundedRational { *; } +# Need CR comparison operators for testing. +-keepclassmembers class com.hp.creals.CR { *; } |