Java Scientific Calculator


Home ·
Download ·
Design and operation ·
Modes ·
Accuracy of calculations ·
Numbers and arithmetic ·
Roots, powers and logs ·
Trigonometric functions ·
Factorials and combinations ·
Logical functions ·
Memory ·
Statistical calculations ·
Variable expressions ·
Graphing functions ·
Other features and functions ·
Modifying the code ·
Testing the code ·
Known issues ·
Similar projects ·


The calculator has one general memory and five memory functions. Three of these are not available in statistics mode, though you can still use the memory in this mode.

The main memory functions are store and recall. Store (button sto, key ‘S’) stores the result of a calculation in memory. This function causes the calculator to immediately evaluate the current expression so that it has a number to store. Recall (button rec, key ‘R’) recalls the number from memory and puts it in the input display as RCL. This allows you to use the memory value in calculations, but means you have to evaluate an expression (press enter or ‘=’ to get a numeric representation of the value.

The M+ and M− buttons (keys ‘M’ and shift, ‘M’) let you add to and subtract from the value in memory. This is probably most useful when adding up a long list of numbers. Like STO, they evaluate the current expression before adding it to or subtracting it from memory.

The MCl button (keys shift, ‘\’) clears the memory. In fact, it does no more than set the memory value to zero, which is its value when no number has been stored.

Only store and recall are available in statistics mode. In this mode you can still clear the memory by using AC to clear the display and STO to store zero in memory.

The ANS button (key ‘a’) acts like an immediate memory of the last computed value and can be used as many times as you like in the current expression. The calculator will put ANS at the beginning or end of an expression if the expression would not otherwise make sense. So, for example if you type ‘×5’ the calculator will produce ‘ANS×5’, assuming you meant to multiply the previous result by 5. Note that ‘+5’ and ‘−5’ won’t be changed because these expressions are meaningful on their own. However, ‘5+’ followed by enter will change to ‘5+ANS’ because that is a meaningful expression. The feature of putting ANS at the end of an expression that would not otherwise be well-formed is probably most useful when using a function, like square root, that acts on the expression following it, to evaluate the function applied to the last result.

Last modified: Sat 31 May 2008 01:10 pm Logo