HP 35s User Manual
Here you can view all the pages of manual HP 35s User Manual. The HP manuals for Calculator are available online for free. You can easily download all the documents as PDF.
Page 171
hp calculators HP 35s Programming using line numbers Programming the HP 35s Using line numbers rather than labels Example
Page 172
hp calculators HP 35s Programming using line numbers hp calculators - 2 - HP 35s Programming using line numbers - Version 1.0 Programming the HP 35s Doing a simple calculation once on the HP 35s is easy. Doing the same calculation many times, or doing a complicated calculation, takes longer. It can be better to store all the steps needed for the calculation in a program. A program is a set of instructions, stored all together. Once it is written, it can be tested to see if it works...
Page 173
hp calculators HP 35s Programming using line numbers hp calculators - 3 - HP 35s Programming using line numbers - Version 1.0 In detail, the HP 35s handles changes in a program containing line number GTO and/or XEQ instructions as follows: Edit performed HP 35s program dynamically changed so that A step is inserted before a GTO or XEQ instruction All GTO and XEQ instructions are renumbered to point to the revised (higher step number) location A step is deleted before a GTO or XEQ...
Page 176
hp calculators HP 35s Accessing the stack registers hp calculators - 2 - HP 35s Accessing the stack registers - Version 1.0 The stack registers The HP 35s uses an operational stack of four registers, called X, Y, Z and T and LASTx. In RPN mode, these registers are used to hold values for computations. In algebraic mode, these registers hold results from previous calculations. Chapter 2 of the HP 35s User’s Guide explains the RPN stack in detail. Many of these features work in algebraic...
Page 177
hp calculators HP 35s Accessing the stack registers hp calculators - 3 - HP 35s Accessing the stack registers - Version 1.0 #.) Figure 5 #.) (REGX stands for “register X.”) Figure 6 ) (This completes the calculation) Figure 7 Answer: The answer is 0.5. The larger point is the ability to reference up to four previous results when in algebraic mode. Example 2: In RPN mode within a program, fill the stack with 1, 2, 3, and 4. Then divide the 4 by (1+2x3), but do so...
Page 178
hp calculators HP 35s Accessing the stack registers hp calculators - 4 - HP 35s Accessing the stack registers - Version 1.0 Figure 9 # Figure 10 11) Figure 11 -4&(2* Figure 12 ) Figure 13 Answer: The lines entered into this program would, when executed, take the value that was originally in X and divide it by ( 1 + 2 x 3 ) without disturbing the stack. While this is actually a mixing of algebraic features within the RPN mode, it provides HP 35s users...
Page 179
hp calculators HP 35s Indirect register data packing program The HP 35s and indirect registers Saving program memory space Saving indirect storage space The program listing Usage instructions Entering program lines Line by line analysis of the program Saving keystrokes Usage examples
Page 180
hp calculators HP 35s Indirect register data packing program hp calculators - 2 - HP 35s Indirect register data packing program - Version 1.0 The HP 35s and indirect registers The HP35s contains registers or variables that can be referenced directly or indirectly. Variables A through Z can be directly addressed, as in a !# instruction. Indirect addressing uses two of these direct variables as indices that hold the location or address where an operation is to be performed. The two...