Contents
Contents ............................................................................................................................................................................................... | 1 |
1. RPL Programming....................................................................................................................................................................... | |
Understanding Programming ................................................................................................................................................. | |
The Contents of a Program............................................................................................................................................. | |
Calculations in a Program................................................................................................................................................ | |
Entering and Executing Programs ........................................................................................................................................ | |
Viewing and Editing Programs .............................................................................................................................................. | |
Creating Programs on a Computer........................................................................................................................................ | |
Using Local Variables .............................................................................................................................................................. | |
Creating Local Variables.................................................................................................................................................. | |
Evaluating Local Names.................................................................................................................................................. | |
Defining the Scope of Local Variables.......................................................................................................................... | |
Compiled Local Variables.............................................................................................................................................. | |
Creating | |
Using Tests and Conditional Structures ............................................................................................................................. | |
Testing Conditions.......................................................................................................................................................... | |
Using Conditional Structures and Commands........................................................................................................... | |
Using Loop Structures........................................................................................................................................................... | |
Using Definite Loop Structures.................................................................................................................................... | |
Using Indefinite Loop Structures................................................................................................................................. | |
Using Loop Counters..................................................................................................................................................... | |
Using Summations Instead of Loops .......................................................................................................................... | |
Using Flags .............................................................................................................................................................................. | |
Types of Flags.................................................................................................................................................................. | |
Setting, Clearing, and Testing Flags............................................................................................................................. | |
Recalling and Storing the Flag States........................................................................................................................... | |
Using Subroutines .................................................................................................................................................................. | |
Trapping Errors...................................................................................................................................................................... | |
Causing and Analyzing Errors...................................................................................................................................... | |
Making an Error Trap.................................................................................................................................................... | |
Input......................................................................................................................................................................................... | |
Data Input Commands .................................................................................................................................................. | |
Using PROMPT, CONT for Input ............................................................................................................................. | |
Using DISP FREEZE HALT, CONT for Input...................................................................................................... | |
Using INPUT, ENTER for Input ............................................................................................................................... | |
Using INFORM and CHOOSE for Input................................................................................................................. | |
Beeping to Get Attention.............................................................................................................................................. | |
Stopping a Program for Keystroke Input........................................................................................................................... | |
Using WAIT for Keystroke Input................................................................................................................................ | |
Using KEY for Keystroke Input.................................................................................................................................. | |
Output .............................................................................................................................................................................. | |
Data Output Commands............................................................................................................................................... | |
Labeling Output with Tags............................................................................................................................................ | |
Labeling and Displaying Output as Strings ................................................................................................................ | |
Pausing to Display Output............................................................................................................................................ | |
Using MSGBOX to Display Output ........................................................................................................................... | |
Using Menus with Programs ................................................................................................................................................ | |
Using Menus for Input................................................................................................................................................... | |
Using Menus to Run Programs .................................................................................................................................... | |
Turning Off the Calculator from a Program ..................................................................................................................... | |
2. RPL Programming Examples.................................................................................................................................................... |
Contents - 1