 # Pocket Calculator

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram CDF Player or other Wolfram Language products.

Requires a Wolfram Notebook System

Edit on desktop, mobile and cloud with any Wolfram Language product.

This Demonstration simulates a simple pocket calculator.

[more]

MC clear memory MR recall number stored in memory MS store number in memory M+ add number to memory Clear set displayed number to zero CE abandon operation and set displayed number to zero +/- change sign of number + add two numbers (e.g. 5 + 4 = 9) - subtract two numbers (e.g. 5 - 4 = 1) × multiply two numbers (e.g. 5 × 2 = 10) % calculate percentage (e.g. 50 × 20% = 10 or 20% × 50 = 10) ÷ divide two numbers (e.g. 15 ÷ 3 = 5) reciprocal of the number  square : multiplies a given number with itself = get result

[less]

Contributed by: Karl Scherer (April 2014)
Open content licensed under CC BY-NC-SA

## Snapshots   ## Details

Decimal point "."

To key in the number 31.5, click the "3" button, then the "1" button, then the "." button, then the "5" button.

Buttons "+", "-", "×", "÷"

Key in the first number, then one of the keys "+", "-" ,"×", "÷", then the second number.

Finally, click "=" to see the result.

Memory signal

The empty square in the top-left corner shows "M" if there is a nonzero number stored in the memory.

Buttons "+", "-", "×", "/" signal

If you have pressed one of the buttons "+", "-", "×", "÷", the button will be marked by a thin black frame to remind you which calculation you are executing.

Shortcut (Brackets denote output by the calculator, all others are your keystrokes.) Instead of 4 × 2 = (8) and then 8 + 3 = (11) you can keep calculating: 4 × 2 = (8) + 3 = (11) ...

Similarly, you can chain calculating exponentials with integral exponent . In order to calculate , key in: 5 × 5 = (25) × 5 = (125) × 5 = (625).

Limitations - Avoid number overflow! - Only two decimal places available! - There is no rounding in the multiplication result.

History This game was originally published as the Zillions games "Calculator" by the same author.

## Permanent Citation

Karl Scherer

 Feedback (field required) Email (field required) Name Occupation Organization Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback. Send