Alternative for Unix's 'dc' desktop calculator

Whenever I found myself out of reach of my HP32-C, I used to use the UNIX RPN desktop calculator 'dc'. However, for engineering, 'dc' gets very awkward with very large or very small numbers. So I made my own and called it 'sdc', for 'scientific desktop calculator'.

'Sdc' is an RPN scientific desktop calculator which understands and prints number in scientific or engineering formats. It's a text input thing, not a GUI. You'd run it in a terminal window. So it will accept 1n or 1e-9 to mean 0.000000001. If you ask it to divide 1M by 1p, it replies 1.000E, that is, 1e18.

It has the usual set of operations you'd expect: The four base operations, normal and hyperbolic trigonometric functions in radians, degrees or grads, exponentials and logarithms, powers and roots and the factorial. You can also define named constants that will be preserved across invocations. It's nice to be able to type c instead of 299.792458M or e0 instead of

8.854187817620394p.

Maybe someone else might want to have it too. It's tiny and simple. I packed up the source code, man page and a Linux executable in a tar archive that's about 18kB heavy. You can pick it up at .

Enjoy, Jeroen Belleman

Reply to
Jeroen Belleman
Loading thread data ...

The windows 2 calculator also runs on wine.

NT

Reply to
tabbypurr

I use this:

formatting link

You can plug in units too.

There have been some attempts to build a windows binary but, to my knowledge, 100% functionality hasn't been achieved.

Most linux repositories should have it. There's also an API (libqalculate) for people who want to use the functionality in their own apps.

--
Grizzly H.
Reply to
mixed nuts

Try "galculator".

--

Tim Wescott 
Wescott Design Services 
http://www.wescottdesign.com
Reply to
Tim Wescott

GRPN works well, too, and is a standard Linux package for most distros.

Jon

Reply to
Jon Elson

I am really dependent on the Units program. It just does basic 1*2+3*sin (pi) stuff but it also understands units so you can ask for 120V 20A hr in btu units, and it'll convert for you.

BTW, Google search window also does arithmetic, including units; it's just a little picky about syntax, so if you don't get the result back you have to look and debug (simplify, and build it back always worked for me).

Reply to
Przemek Klosowski

}snip{

Have you tried wolframalpha.com ?

joe

Reply to
joe hey

Yes, and found them good but annoying ("you can't have this result--it's for a paid subscription only"). The idea of coupling the calculator with cloud data sources is brilliant though.

Reply to
Przemek Klosowski

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.