3 ms·
I consider myself an old unix person, but I use dc. Possibly to make it more confusing to anyone who looks at what I'm doing. It also gives the math result her
by drougge 3y ago
I consider myself an old unix person, but I use dc. Possibly to make it more confusing to anyone who looks at what I'm doing.
It also gives the math result here of course.
% dc
9999999999999999.0 9999999999999998.0 - p
1.0
%
- rnk 3y agorpn for for the win I guess ;-). I actually didn't get to try my first linux stuff until grad school in the 80s. I wish I had saved off all my init files from then to see what they look like now.
- rstuart4133 3y agoBack in the day (Unix Seventh Edition) bc was just a front end that compiled the expression and piped it to dc. My take it is most people didn't find rpn a win, and bc was the fix. I used bc's compiled output ("bc -c") to learn how to make dc jump through hoops. https://man.cat-v.org/unix_7th/1/bc https://man.cat-v.org/unix_7th/1/bc
- hanche 3y agoI guess old unix persons do use bc. But even older unix persons, like you and me, use dc. Oh, and I still have my trusty old HP48GX calculator that I bought nearly thirty years ago. Algebraic notation is fine for paper, bur RPN is best for calculating. I am glad I can even have an RPN calculator (PCalc) on my phone now.