Casio FX300MS User Guide - Page 33

Stacks

Page 33 highlights

k Stacks This calculator uses memory areas, called "stacks," to temporarily store values (numeric stack) and commands (command stack) according to their precedence during calculations. The numeric stack has 10 levels and the command stack has 24 levels. A stack error (Stack ERROR) occurs whenever you try to perform a calculation that is so complex that the capacity of a stack is exceeded. • Example: 1 23 45 123 4 5 6 7 Numeric Stack 12 23 34 45 54 Command Stack 1҂ 2 3 4ѿ 5҂ 6 7ѿ • Calculations are performed in sequence according to "Order of Operations." Commands and values are deleted from the stack as the calculation is performed. E-31

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40

E-31
Example:
1
2
3
4
5
1
2
3
4
5
6
7
Numeric Stack
Command Stack
1
2
3
4
5
2
3
4
5
4
±
³
±
³
1
2
3
4
5
6
7
k
Stacks
This calculator uses memory areas, called “stacks,” to tem-
porarily store values (numeric stack) and commands (com-
mand stack) according to their precedence during calcu-
lations. The numeric stack has 10 levels and the command
stack has 24 levels. A stack error (Stack ERROR) occurs
whenever you try to perform a calculation that is so com-
plex that the capacity of a stack is exceeded.
• Calculations are performed in sequence according to
“Order of Operations.” Commands and values are de-
leted from the stack as the calculation is performed.