From 4db31b490443e4454d98a5ae2bc44b87149accfe Mon Sep 17 00:00:00 2001 From: Hans Boehm Date: Sun, 31 May 2015 12:19:05 -0700 Subject: 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 --- res/layout/pad_advanced.xml | 27 +++++++++++++++++++++++++++ res/layout/pad_advanced_tablet_port.xml | 27 +++++++++++++++++++++++++++ res/values/strings.xml | 33 +++++++++++++++++++++++++++------ 3 files changed, 81 insertions(+), 6 deletions(-) (limited to 'res') diff --git a/res/layout/pad_advanced.xml b/res/layout/pad_advanced.xml index bd2f30a..0d6168a 100644 --- a/res/layout/pad_advanced.xml +++ b/res/layout/pad_advanced.xml @@ -106,6 +106,15 @@ android:contentDescription="@string/desc_fun_ln" android:text="@string/fun_ln" /> +