2 ms·
I used a HP-35s for a long time in a previous job where I had to do quite a bit of arithmetic. It's the "35th anniversary edition" of the "classic" HP-35 RPN ca
by arp242 3y ago
I used a HP-35s for a long time in a previous job where I had to do quite a bit of arithmetic. It's the "35th anniversary edition" of the "classic" HP-35 RPN calculator (IIRC the 35s can do infix as well, but I never used it). It's a really nice calculator, but I no longer have it (when I moved to New Zealand I had to get rid of a lot of stuff).
These days, opening a new terminal or whatnot is just as fast, allows copy/paste from my computer, and unlike that job I'm not stuck on a Windows machine so I have some more flexibility.
In zsh I have this:
autoload -U zcalc # Get quick results for "zc 6 * 6", or just use "zc" to get zcalc
alias zc >/dev/null && unalias zc
zc() { if (( $# )); then zcalc -e ${(j: :)argv}; else zcalc; fi }
alias zc='noglob zc'
No RPN though; I still really like RPN, but context switching between infix and RPN is hard.
- panki27 3y agoThanks for teaching me about zcalc! I usually use bc for simple calculations: bc <<< "14 * 3" Running it without arguments gives an interactive interpreter.
- arp242 3y agozcalc is basically just a better version of bc. There are probably even better CLI calculators out there, but zcalc has the same advantage as bc: you'll almost always have it available (if zsh is available anyway, which is always true for my usage).