4 ms·
bc is still my favorite calculator, 30 years after I first learned *nix (SunOS for me back then).
by sulam 5y ago
bc is still my favorite calculator, 30 years after I first learned *nix (SunOS for me back then).
- jasone 5y agoSimilarly, I have used dc as my desktop calculator of choice since the mid-90s. It has been useful in many one-liner scripts too. A simple, powerful tool.
- tannhaeuser 5y agoOne-liners? dc is using reverse Polish, with newlines to separate tokens, or is there an alternate separator I didn't know all these years?
- somat 5y agotokens are separated on parsed input, where the token needs to be explicit, like two numbers in a row a space can separate them. An example from the manual. the first ten values of n! [la1+dsa*pla10>y]sy0sa1lyx