Detailed instructions for use are in the User's Guide.
[. . . ] 0003290068 Printed in Singapore Edition 5
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
Notice
This manual and any examples contained herein are provided "as is" and are subject to change without notice. Hewlett-Packard Company makes no warranty of any kind with regard to this manual, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. shall not be liable for any errors or for incidental or consequential damages in connection with the furnishing, performance, or use of this manual or the examples contained herein. Reproduction, adaptation, or translation of this manual is prohibited without prior written permission of HewlettPackard Company, except as allowed under the copyright laws. [. . . ] By stepping through its execution, one line at a time, you can see the result after each program line is executed, so you can verify the progress of known data whose correct results are also known. As for regular execution, make sure program entry is not active (PRGM annunciator off). Press label to set the program pointer to the start of the instruction moves the program (that is, at its LBL instruction). (If the program is the first or
Simple Programming
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
129
Size : 17 x 25. 2 cm . 7
only program, you can press to move to its beginning. ) 3. The result of that execution is then displayed (it is in the Xregister). Repeat step 3 until you find an error (an incorrect result occurs) or reach the end of the program. If Programentry mode is active, then or simply changes the programs pointer, without executing lines. Holding down an arrow key during program entry makes the lines roll by automatically. Check that Programentry mode is not active before you start:
Keys:
5 (release) (hold) (release) (hold) (release) (hold) (release) (hold) (release) A (hold)
Display:
Description:
Moves program counter to label A.
Squares input.
Value of . Result is correct.
1210 Simple Programming
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
Entering and Displaying Data
The calculator's variables are used to store data input, intermediate results, and final results. (Variables, as explained in chapter 3, are identified by a letter from A through Z or i, but the variable names have nothing to do with program labels. ) In a program, you can get data in these ways: From an INPUT instruction, which prompts for the value of a variable. (You can use STO to store the value in a variable for later use. ) From variables that already have values stored. (This is also handy if you're using equations. ) In a program, you can display information in these ways: With a VIEW instruction, which shows the name and value of a variable. (This is the most handy technique. ) On the stack--only the value in the Xregister is visible. (You can use PSE for a 1second look at the Xregister. ) In a displayed equation (if enabled by flag 10 set). (The "equation" is usually a message, not a true equation. ) Some of these input and output techniques are described in the following topics.
Using INPUT for Entering Data
The INPUT instruction ( Variable ) stops a running program and displays a prompt for the given variable. This display includes the existing value for the variable, such as
where
Simple Programming 1211
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
"R" is the variable's name, "?" is the prompt for information, and 0. 0000 is the current value stored in the variable. The value you keyed in then Press writes over the contents of the Xregister and is stored in the given variable. If you have not changed the displayed value, then that value is retained in the Xregister. The areaofacircle program with an INPUT instruction looks like this:
To use the INPUT function in a program: 1. (In the areaofacircle example, the only input needed is the radius, which we can assign to R. ) 2. In the beginning of the program, insert an INPUT instruction for each variable whose value you will need. [. . . ] See display format in equations, 6-6 in programs, 12-6 Setting, 1-17 alpha characters, 1-2 angles between vectors, 15-1 converting format, 4-11 converting units, 4-11 implied units, 4-3, A-2 angular mode, 4-3, A-2, B-5 annunciators alpha, 1-2 battery, 1-1, A-2 descriptions, 1-8 flags, 13-11 list of, 1-9 low-power, 1-1, A-2 shift keys, 1-2 answers to questions, A-1 arithmetic binary, 10-3 complex-number, 9-4 general procedure, 1-14 hexadecimal, 10-3 intermediate results, 2-13 long calculations, 2-13 octal, 10-3 order of calculation, 2-16 stack operation, 2-5, 9-2 assignment equations, 6-11, 6-12, 6-13, 7-1 asymptotes of functions, C-9
A
absolute value (real number), 4-15 addressing indirect, 13-19, 13-20, . 13-21
Index1
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
A. . Z annunciator, 1-2, 3-2, 6-5
B
backspace key canceling VIEW, 3-4 clearing messages, 1-3, E-1 clearing X-register, 2-2, 2-8 deleting program lines, 12-20 equation entry, 1-3, 6-9 leaving menus, 1-3, 1-8 operation, 1-3 program entry, 12-7 starts editing, 6-10, 12-7, 12-20 balance (finance), 17-1 base affects display, 10-5 arithmetic, 10-3 converting, 10-1 default, B-5 programs, 12-25 setting, 10-1, 14-10 BASE menu, 10-1 base mode default, B-5 equations, 6-6, 6-13, 12-25 fractions, 5-2 programming, 12-25 setting, 12-25, 14-10 batteries, 1-1, A-2 Bessel function, 8-3 best-fit regression, 11-8, 16-1 BIN annunciator, 10-1 binary numbers. See numbers arithmetic, 10-3
converting to, 10-1 range of, 10-6 scrolling, 10-7 typing, 10-1 viewing all digits, 3-4, 10-7 borrower (finance), 17-1 branching, 13-2, 13-15, 14-6
C
adjusting contrast, 1-1 canceling prompts, 1-3, 6-16, 12-14 canceling VIEW, 3-4 clearing messages, . 1-3, . E-1 clearing X-register, 2-2, 2-8 interrupting programs, 12-19 leaving catalogs, 1-3, 3-4 leaving Equation mode, 6-4, 6-5 leaving menus, 1-3, 1-8 leaving Program mode, 12-6, 12-7 on and off, 1-1 operation, 1-3 stopping integration, 8-2, 14-7 stopping SOLVE, 7-7, 14-1 calculator adjusting contrast, 1-11 default settings, B-5 environmental limits, A-2 questions about, A-1 repair service, A-7 resetting, A-4, B-3 self-test, A-5 shorting contacts, A-4 testing operation, A-4, A-5 turning on and off, 1-1 warranty, A-6
Index2
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
cash flows, 17-1 catalogs leaving, 1-3 program, 1-21, 12-22 using, 1-21 variable, 1-21, 3-4 chain calculations, 2-13 change-percentage function, 4-6 changing sign of numbers, 1-11, 1-14, 9-3 checksums equations, 6-21, 12-7, 12-24 programs, 12-22, 12-23 %CHG arguments, 4-7 clearing equations, 6-10 general information, 1-3 memory, 1-22, A-1 messages, 1-21 numbers, 1-11, 1-13 programs, 1-22, 12-23 statistics registers, 11-2, 11-13 variables, 1-22, 3-4, 3-5 X-register, 2-2, 2-7 clearing memory, A-4, B-4 CLEAR menu, 1-4 , 9-1, 9-3 combinations, 4-13 commas (in numbers), 1-16, A-1 comparison tests, 13-7 complex numbers coordinate systems, 9-6 entering, 9-1 on stack, 9-2 operations, 9-1, 9-3
polynomial roots, 15-22 viewing, 9-2 conditional tests, 13-6, 13-7, 13-8, 13-11, 13-16, 14-6 constant (filling stack), 2-7 Continuous Memory, 1-1 contrast adjustment, 1-1 conversion functions, 4-8 conversions angle format, 4-11 angle units, 4-11 coordinates, 4-8, 9-6, 15-1 length units, 4-12 mass units, 4-12 number bases, 10-1 temperature units, 4-12 time format, 4-11 volume units, 4-12 coordinates converting, 4-5, 4-8, 15-1 transforming, 15-34 correlation coefficient, 11-8, 16-1 cosine (trig), 4-4, 9-3 cross product, 15-1 cubic equations, 15-22 curve fitting, 11-8, 16-1 /c value, 5-6, B-5, B-8
D
Decimal mode. See base mode decimal point, , 1-16, A-1 degrees angle units, 4-3, A-2 converting to radians, 4-11
Index3
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
denominators controlling, 5-6, 13-9, 13-13 range of, 1-19, 5-1, 5-3 setting maxim urn, 5-5 digit-entry cursor backspacing, 1-3, 6-9, 12-7 in equations, 6-6 in programs, 12-7 meaning, 1-12 discontinuities of functions, C-6 display adjusting contrast, 1-1 annunciators, 1-8 function names in, 4-15 X-register shown, 2-2 display format affects integration, 8-2, 8-6, 8-8 affects numbers, 1-16 affects rounding, 4-15 default, B-5 periods and commas in, 1-16, A-1 setting, 1-16, A-1 DISP menu, 1-16 "do if true", 13-6, 14-6 dot product, 15-1 DSE, 13-16
duplicating numbers, 2-6 ending equations, 6-5, 6-9, 6-10, 12-6 evaluating equations, 6-12, 6-13 separating numbers, 1-13, 1-15, 2-6 stack operation, 2-6 EQN annunciator in equation list, 6-5, 6-8 in Program mode, 12-6 EQN LIST TOP, 6-8, E-2 equality equations, 6-11, 6-12, 7-1 equation-entry cursor backspacing, 1-3, 6-9, 12-21 operation, 6-6 equation list adding to, 6-5 displaying, 6-8 editing, 6-10 EQN annunciator, 6-5 in Equation mode, 6-4 operation summary, 6-4 Equation mode backspacing, 1-3, 6-9 during program entry, 12-6 leaving, 1-3, 6-4 shows equation list, 6-4 starting, 6-4, 6-8 equations and fractions, 5-10 as applications, 17-1 base mode, 6-6, 6-13, 12-25 checksums, 6-21, 12-7, 12-24, B-2 compared to RPN, 6-18, 12-4 controlling evaluation, 13-10 deleting, 1-4, 6-10
E
(exponent), 1-12 E in numbers, 1-11, 1-17, A-1 ENG format, 1-17. See also display format clearing stack, 2-6 copying viewed variable, 12-15
Index4
File name 32sii-Manual-E-0424 Printed Date : 2003/4/24
Size : 17 x 25. 2 cm . 7
deleting in programs, 12-7, 12-20 displaying, 6-8 displaying in programs, 12-15, 12-18, 13-10 editing, 1-3, 6-9, 6-10 editing the programs, 12-7, 12-20 entering, 6-5, 6-9 entering in programs, 12-6 evaluating, 6-12, 6-13, 6-14, 7-6, 12-4, 13-10 functions, 6-6, 6-17, F-1 in programs, 12-4, 12-6, 12-7, 12-24, 13-10 integrating, 8-2 lengths, 6-21, 12-7, H-2 list of. [. . . ]