Context: let's say we want to compute the total, with tip, approximately, and in our head. What is the best method you can construct to find the following.
Given $x \in \mathbb{R}^+$, construct $y$ such that $1.14x \leq y \leq 1.21x$ as simply$^1$ as possible.
- "Simply" meaning that the goal is to find a method for transforming $x$ into a satisfactory $y$ in an "optimal" way for mental computation. The width of the target codomain should be exploited to facilitate this.
I suspect that the use of some Floor and Ceiling operations interspersed with the necessary multiplication may be beneficial, as well as perhaps log_10 or other operations.
Feel free to generalize to a parameterized window (tip percentages) if you wish. Also, note that we are not computing the tip itself and then adding it to the total, but rather simply skipping to the final result of total+tip.
In this case, 180=1.224*147, so we actually overestimated. Since 1.2 was so close to our upper bound, we should have rounded down every time. – Steve Aug 20 '16 at 16:30