10680

# Pocket Calculator

This Demonstration simulates a simple pocket calculator.
MC clear memory
MR recall number stored in memory
MS store number in 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

### 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

 Share: Embed Interactive Demonstration New! Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details » Download Demonstration as CDF » Download Author Code »(preview ») Files require Wolfram CDF Player or Mathematica.

#### Related Topics

 RELATED RESOURCES
 The #1 tool for creating Demonstrations and anything technical. Explore anything with the first computational knowledge engine. The web's most extensive mathematics resource. An app for every course—right in the palm of your hand. Read our views on math,science, and technology. The format that makes Demonstrations (and any information) easy to share and interact with. Programs & resources for educators, schools & students. Join the initiative for modernizing math education. Walk through homework problems one step at a time, with hints to help along the way. Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet. Knowledge-based programming for everyone.