- iOS: https://apps.apple.com/us/app/instant-calculator/id163232882... - Android: https://play.google.com/store/apps/details?id=com.adrianmeji...
It's essentially a 4-function calculator that records every step on tape, but you can edit any digit anywhere and all related steps are immediately recalculated, like on a spreadsheet.
> 1+1
2
> 10+10
20
Then if you tap the first line ("1+1") my ideal REPL would add it to the bottom: > 1+1
2
> 10+10
20
> 1+1_ (with the cursor here ready to edit it)
Then you can for examlpe change a 1 to 2, then type ENTER: > 1+1
2
> 10+10
20
> 1+2
3
That way you can easily compute a few things, then compare both the expressions and results of the last few calculations, and quickly make edits/corrections as needed.Also, you can get this functionality for even your broken build (or other interactive commandline apps that have no edit history) by just doing something like:
alias qalc='rlrwap qalc'I have an older version of it and it works fine although the keyboard is a little clunky. However, you need to swipe to get to previous computations. I'm not sure if they changed that in the new version.
If only it could display about a dozen previous results while the keyboard is active... With a Python REPL I can just assign intermediate results to variables.
This would beat by far the convenience and usability of this 2-in-1 calculator. I would KILL to have this.
In fact, on my laptop, I use the Python REPL as a calculator. I hit Ctrl-T python ENTER. It opens a terminal and I start typing 48*152 ENTER and I see the result. The history of calculations is saved. I can access previous calculations, edit one number and recompute. I see the last 100 lines or so, on one screen.
The only one somewhat usable Python REPL on Android is "Pyonic Python 3 interpreter" but it's clumsy to use as a calculator because it uses the standard alphabetic keyboard so you have to keep switching to the special characters layout to type math operators (-+/...) If this ONE detail would be fixed, and with some minor UI polish I believe it could become more popular than the 2-in-1 calculator...