beautypg.com

Chapter 4, Using the stack, Using the stack -1 – HP 49g Graphing Calculator User Manual

Page 38: Chapter 4 the stack

Attention! The text in this document has been recognized automatically. To view the original document, you can use the "Original mode".

background image

Chapter 4

The Stack

The HP 49G keeps a record of the objects you enter and the results of your

operations. In algebraic mode this record is called history; in RPN mode it

is called the stack.

Using the stack

Entries on the stack are niunbered (as in the
example at tire riglrt). Air entry on the stack is
referred to as being on a particular level. The
level is the number of the line on which the

entiy appears. In the example at the right, 58
is on level 4, 6 is on level 3,

is on level

2, and so on.

RMi KVZ HEK R= 'K'

■ CHOHE? __________

isiaBniiSiaBi

58

___

6

■J8745

93.514704726

If you are working in RPN mode, you will use the stack to perfonn

calculations. In doing so, you need to be aware of differences between the

way calculations are performed and displayed in RPN mode and in

algebraic mode, hr RPN mode:

® A command that requires arguments—that is, a command that needs

objects to act on—takes its arguments from the stack. Therefore, the

arguments must be present before you execute the command: one
argument per level and in the correct order. (There is one exception:

when the command takes only one argument, you can execute the

command with the argument on tire command line, not on the stack.)

• A command’s arguments are removed from the stack when the

command is executed. The argmrrents are replaced by the result of the
calculation.

In contrast, in algebraic mode you specify your arguments after you enter
the commaird, and the command and its arguments are retained in history

together with the result of the calculation.

For example, to find the cube of 52, you need to specify two arguments:
the nimrber (52) and the index (3). In algebraic mode, you enter:

52 (>^j3 (ENTER)

The Stack

Page 4-1