Home | | Java | | Share This Page |
A powerful scientific/financial calculator.
Copyright © 2009, Paul Lutus — Message Page
Documentation for PLCalc, and downloading options for a standalone version, appear below the applet.
Here are the options:
First, if the applet doesn't appear above, if all you see is a gray square, chances are your Java runtime engine is out-of-date or not present. To solve this problem, go to http://java.com and download the current version of Java.
I've written any number of computer-based calculators over the years, with varying degrees of success. As time passes, as I figure out what features they should have, they are gradually becoming more useful.
I had recently been thinking about writing yet another calculator when I got an e-mail from a civil engineer asking for a relatively exotic feature — he wanted a calculator that could accept and display numbers representing feet, inches and fractional inches — numbers that look like this: "9 feet 3 7/16 inches."
My first impulse was to tell this fellow to switch to Metric, which does away with such things, but on reflection I decided that wasn't realistic. This came to me the day NASA lost a $125 million Mars spacecraft because two teams got confused about which measurements to use — they sent commands to the spacecraft using the wrong measurement scheme, and the craft burned up instead of entering a Mars orbit. On realizing their mistake, these hotshot aerospace engineers more or less said, "Oh, well, we'll just have to try again."
All my calculators are RPN — that's Reverse Polish Notation — an efficient, parenthesis-free way to process equations. I have always preferred RPN calculators, especially back before there were personal computers and calculators were much more important than they are now, because RPN requires an absolute minimum of keystrokes to produce results.
When a computation is trivial, there isn't much difference in procedure between an algebraic and an RPN calculator:
17 + 23
Algebraic:
RPN:
But when calculations become complex, and in particular when the required operations are in a nonintuitive order, the advantages to RPN become obvious:
5 + ((1 + 2) * 4) - 3
Algebraic:
That's 14 entries.
RPN:
That's 9 entries.
Another advantage to RPN is there is normally a stack on display containing your recent entries, so if you get confused during a long calculation, the stack display will help you stay focused. The stack contains your most recent entries in a last-in first-out scheme. Typically, when a mathematical operation is needed, one or two numbers are removed from the stack, the operation is carried out and the result is returned to the stack.
Unlike a handheld calculator, PLCalc's stack is not limited to four entries, indeed its stack size is for all practical purposes unlimited.
PLCalc has lots of useful features:
Again, PLCalc is released under the GPL, and is Copyright © 2009, P. Lutus.
Home | | Java | | Share This Page |