by drbawb · 3y ago · 0 comments
I bought a SwissMicros DM42: the build quality is great, the e-ink display works really nice for a calculator, and it sips power compared to more recent graphing calculators. (I've had this thing for over a year and it's still showing a full charge on the CR2032 battery it shipped with. My HP 50g used to demolish a set of like 3 or 4x AAA batteries every 2-3 months.) My only complaint is the rubber feet have exposed my office desk as not being a truly flat surface.[1] (I also have access to an HP-15C (both the original and a clone), but I like being able to see the whole stack in XYZT mode. I have no mind's eye, so seeing only the one register is torture for me.)
Command line: orpie [https://github.com/pelzlpj/orpie] is okay; it has math functions that dc doesn't have.
GUI: galculator, in RPN mode
Definitively not an HP emulator.
What about dc?
wtf ok i'm going back to my HP49 emulator
[ + z 1 <s ] ss ls x p
The [ and ] delimit the macro definition that's placed on top of the stack. ss stores the just defined macro in register s and removes it from the top of the main stack. ls loads the macro from register s and places it on the top of the main stack. x executes the macro and p prints the final result.As for the macro, + pops the top two elements on the stack, adds them and places the result on the top of the stack. z pushes the stack size on top of the stack. 1 pushes 1 on top of the stack. <s pops the top two elemenets on the stack, compares them, and if the top element is less than the the second element, it executes the macro stored in register s. Otherwise, it doesn't do anything.
The macro will execute as long as the stack size is greater than 1. Once the stack size is 1, it will terminate and the p command prints the sum of all the numbers on the stack.
oh, i also have a machinists calculator. it can do specific calcs like speeds and feeds, bolt pattern spacing, inch/metric conversion, etc. i rarely use that one too, but it's nice. i love how it has "adj", "opp", "hyp" markings for trig functions.
Mine is RPN though.