Smart Calculator (type 'quit' to exit)
calc> 12 + 7
= 19
calc> ans * 3
= 57
calc> m+
memory = 57
calc> 100 / 8
= 12.5
calc> 7 // 2
= 3
calc> 2 ^ 10
= 1,024
calc> sqrt 81
= 9
calc> sqrt -4
Error: sqrt is undefined for -4
calc> 15 % of 2400
= 360
calc> sin 30
= 0.5
calc> fact 10
= 3,628,800
calc> 10 / 0
Error: division by zero
calc> 5 plus 3
Error: use: <a> <op> <b>, <function> <a> or <p> % of <n>
calc> abc * 2
Error: 'abc' is not a number
calc> mr
ans = 57 (from memory)
calc> ans - 7
= 50
calc> m-
memory = 7
calc> mr
ans = 7 (from memory)
calc> history
  1. 12 + 7 = 19
  2. ans * 3 = 57
  3. 100 / 8 = 12.5
  4. 7 // 2 = 3
  5. 2 ^ 10 = 1,024
  6. sqrt 81 = 9
  7. 15 % of 2400 = 360
  8. sin 30 = 0.5
  9. fact 10 = 3,628,800
  10. ans - 7 = 50
calc> quit
10 calculation(s). Last answer: 7
