HP 20B manual Reverse Polish Notation RPN Mode, RPN Stack

Page 18

Mathematical Calculations

For example, key in 1+ 2 x 5 nPr22 in Algebraic mode by pressing:

1+2*5:b2:m=. The result is 241.

Note: the calculator is limited to 12 pending operations. An operation is pending when it is waiting for the input of a number or the result of an operation of higher priority.

Reverse Polish Notation (RPN) Mode

To set the calculator in RPN mode, refer to the section titled, The Mode Menu: Setting Preferences in Chapter 1. In RPN mode, numbers are entered first, separated by pressing Ior =, followed by an operation key.

Note: pressing Ior =is optional after entering a number, if the next key pressed is an operation.

Each time you press an operation or function key in RPN, the answer is calculated immediately and displayed. For example, suppose you wanted to add two numbers in RPN, 1 and 2. Press 1I2+. The result, 3.00, is calculated and displayed immediately on the bottom line along with the (+) symbol on the top line.

Note: in RPN mode, when you are in a menu for which Ior =are valid, pressing these keys enters the number, but it also performs the action associated with the key for the menu item, which is generally saving the number in the variable or calculating the item's value.

The RPN Stack

RPN works by placing numbers in storage registers called the stack. The RPN stack has four levels numbered 1-4. The levels are stacked on top of one another. See Figure 3.

Stack Level 4

-15

Stack Level 3

12

Stack Level 2

41

Stack Level 1

23

Figure 3 The RPN Stack

In Figure 3, the stack contains four numbers, 23, 41, 12, and -15. Each level (1-4) contains one number. When a number is typed and entered into the stack by pressing I, this new number is "pushed" into level one of the stack, and each number already in the stack moves up one level. The number in Level 4, -15, is pushed out and is lost.

18

Image 18
Contents HP 20b Business Consultant Financial Calculator Manual HP part number F2219-90201 First edition AugustLegal Notices Legal NoticesRevision History Revision HistoryContents Cash Flows Business ProblemsTime Value of Money BondsErrors Warranty, Regulatory, and Contact InformationIndex HP 20b Business Consultant Keyboard FeatureFeature Chapters Keyboard Map LegendBasic Features Basic FeaturesAdjusting the Display Contrast Selecting a LanguageMode Menu Setting Preferences Two Line DisplayBasic Features 1Mode Menu Settings Setting top line DescriptionChanging the Calculation Mode Keys Display DescriptionKey Presses and the Secondary Function Key AnnunciatorsUsing the I and = Keys I Key= Key Reset x Menu Editing and Clearing Entries On/CE O KeyMemory and the Memory Menu Accessing Menus and Menu Maps Menu Map for the Break-even Menu Mathematical Calculations Mathematical FunctionsNumber Entry and Display Chain Mode Algebraic ModeReverse Polish Notation RPN Mode RPN StackLast Number U3IO1c23 I56c1 Mathematical Calculations 2Last Number 3I4+5I6+ RPN StackKeys Display Description RPN Stack One-Number Functions and the Math Menu RPN Stack and the Roll Down OperationMath s Menu Keys DescriptionMenu Map for the Math Menu Probability Sub-menu Mathematical Calculations 5Math Menu ExampleIor = 10I 12I Two-Number Functions10I 7Inverse Probability ExampleStoring and Recalling Numbers Recalling a Menu Item Value in a Menu Recall ArithmeticStoring and Recalling with Time Value of Money TVM Keys Rounding NumbersPage Time Value of Money Time Value of Money TVM KeysTime Value of Money 00V 360 N1400 Calculating Payments on a LoanAmortization Time Value of Money 2TVM ExampleMenu Item/Key Description 10Y 1400 00VCreating an Amortization Schedule Using the Interest Conversion Menu Interest Conversion MenuCanadian Mortgages TVM Canada 365Time Value of Money 6Interest Rate Conversion Example Page O300N 6Y350 00V Canadian Mortgage ExampleCash Flow Diagram Cash FlowsCash Flow Example Key DescriptionCash Flow Amount 4500I 80005000I 4000I115000 Analyzing Cash FlowsCash Flows 2Cash Flow Example NPV and IRR Menu Items IRR%Editing Cash Flows Cash Flows 4NPV and IRR ExampleSample Cash Flow Diagrams Bonds Bond MenuBond Calculation Example 20102020 Bond Menu Items+L1= Bonds 2Bond Calculation ExampleDate Calculation Date Calculation MenuDate Calculation Example 10.3 12010 Date Calculation 1Date Calculation ExampleBreak-even Break-even MenuBreak-even 1Break-even Example Business Problems Percent Calculation Menu20I 15I22I 35IWhat is 30% of 80? 4Part % of Total Example 80I30I Depreciation Depreciation Menu1Depreciation Methods 2Depreciation Menu ItemsDepreciation Method Description Sline Depreciation Example 1000500 Depreciation Menu ItemsDepreciation 3Straight Line Depreciation Example Statistical Operations Menu Maps for the Data and Statistics MenusData and Stats Menus Statistical Operations 1The Statistics Menu Items Menu Item Description3I1 60I 1I1 50I2I1 65I 4I1 75I5I1 70I Statistical Operations 3Statistics ExampleErrors Error Messages and Calculator Status1Error Messages Error Message Status Warranty, Regulatory, and Contact Information HP Limited Hardware Warranty and Customer CareReplacing the Batteries Customer Care +65 6100 210 969Honduras Hong Kong 香港特別行政區 852 India Ireland 01 605 Italia 02 754 1901 439 877 232495 228 Singapore 6100Canadian Notice Product Regulatory & Environment InformationModifications Avis CanadienChemical Substances Pbde Index Calendar Actual, Cal.360Off calculator off