HP 20s Calculator - HP%2020S%20

Add to my manuals
132 Pages

advertisement

HP 20s Calculator - HP%2020S%20 | Manualzz
 ME VWLETE FACKAKD
HP-205
Гу HEWLETT
PACKARD
a A & N —
UD Pacino
ME
Eo E
HYP TT
SWAP CLPAGM
173 Cn.r
. Separates two numbers.
. Executes a program.
. Activates blue-labeled keys.
. Activates yellow-labeled keys.
. On; clears display, cancels
operation.
. n through Zxy are statistical sum-
mation memory aids.
10* e LOG e
E
ASIN DEG ACOS RAD ATAN GRD PRGM B
see
FIX SCI
SHOW Pn,r
7.
8.
9.
10.
11
(=) (+)
ENG ALL
LAST n! CLAG CLXE
Backspace.
Loads built-in programs.
Enters Program mode.
Accumulates statistical data.
. A through F keys for labels, built-
in programs, hexadecimal digits.
12. Annunciator Line.
HP-20S Scientific Calculator
Owner’s Manual
Г/) HEWLETT
FE PACKARD
Edition 6
Part Number 00020-90001
Notice
For warranty and regulatory information for this calculator, see pages 117
and 120.
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. Hewlett-Packard Co. 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 keystroke programs
contained herein.
o Hewlett-Packard Co. 1988. All rights reserved. Reproduction,
adaptation, or translation of this manual is prohibited without prior
written permission of Hewlett-Packard Company, except as allowed under
the copyright laws.
The programs that control your calculator are copyrighted and all rights
are reserved. Reproduction, adaptation, or translation of those programs
without prior written permission of Hewlett-Packard Co. is also
prohibited.
Corvallis Division
1000 N.E. Circle Blvd.
Corvallis, OR 97330, U.S.A.
Printing History
Edition 1 April 1988
Edition 2 September 1988
Edition 3 June 1989
Edition 4 August 1991
Edition 5 August 1992
Edition 6 November 1994
Welcome to the HP-20S
Your HP-205 is another example of the superior quality and attention
to detail in engineering and manufacturing that have marked
Hewlett-Packard products for more than 40 years. Hewlett-Packard
stands behind this calculator. We offer worldwide service and exper-
tise to support its use.
Hewlett-Packard Quality
Our calculators are made to excel, to last, and to be easy to use.
® This calculator is designed to withstand the drops, vibrations, pol-
lutants (smog, ozone), temperature extremes, and humidity
variations that it can be exposed to in everyday worklife.
M The calculator and its manual have been designed and tested for
ease of use. We added examples to the manual to highlight the var-
ied uses of this calculator.
® Advanced materials and permanent, molded-in key lettering pro-
vide a long keyboard life and a positive feel to the keyboard.
E CMOS (low-power) electronics and the liquid-crystal display allow
data to be retained even when the calculator is off and let the bat-
teries last a long time.
mM The microprocessor has been optimized for fast and reliable com-
putations using 15 digits internally for precise results.
B Extensive research has created a design that has minimized the ad-
verse effects of static electricity (a potential cause of malfunctions
and data loss in calculators).
Welcome to the HP-20S 3
Features
4
Large 12-character display.
Ten data registers and 99 program lines.
One- and two-variable statistics with linear regression.
Probability functions.
Unit and base conversions.
Polar /rectangular conversions.
Hyperbolic functions.
Accurate math, 12-digits with a 10*%%? exponent range.
Keystroke programming.
Six built-in programs:
Root finder.
Numerical integration.
Complex number operations.
m
=
в
B 3 x 3 matrix solutions.
B® Quadratic equation.
a
Curve fitting.
Welcome to the HP-2058
Contents
1 9 Getting Started
9 Power On and Off
9 Adjusting the Display Contrast
9 Simple Arithmetic Calculations
12 Understanding the Display and Keyboard
12 The Cursor
12 Clearing the Calculator
12 Clearing Memory
13 Annunciators
14 The Shift Keys
14 The INPUT Key
14 The SWAP Key
15 The Alpha Keys
15 Introducing the Math Functions
16 Display Format of Numbers
17 Specifying the Number of Displayed Decimal
Places (FIX)
17 Displaying the Full Precision of Numbers
(ALL)
18 Scientific and Engineering Notation
19 Interchanging the Period and Comma
20 Full Precision of a Number (SHOW)
20 Range of Numbers
21 Messages
2 22 Arithmetic and Storage Registers
22 Chain Calculations
22 Operator Priority and Pending Operations
24 Using Parentheses
25 Reusing the Previous Result (LAST)
26 Exchanging Two Numbers (SWAP)
27 Using Storage Registers
Contents
Numeric Functions
30 General and Logarithmic Functions
31 Reciprocal
32 Percent Functions
32 Percent
33 Percent Change
34 Pi (7)
34 Trigonometric Modes and Functions
34 Changing the Trigonometric Mode
35 Trigonometric Functions
36 1 Angle and Hour Conversions
38 Coordinate Conversions
39 Probability Functions
40 Hyperbolic Functions
41 Parts of Numbers
42 Unit Conversions
4 44 Base Conversions and Base Arithmetic
44 Switching Bases
47 Representation of Numbers
47 Range of Hexadecimal, Octal, and Binary Numbers
49 Arithmetic Operations
9 51 Statistical Calculations
51 Entering Statistical Data
53 Clearing Statistical Data
53 Summary of Statistical Calculations
54 Mean, Standard Deviation, and Summation
Statistics
55 Calculating the Population Standard Deviation
57 Linear Regression and Estimation
59 Weighted Mean
60 Statistical Formulas
6 Contents
61
Programming
64 Creating Programs
66 Program Boundaries (LBL and RTN)
67 Entering Programs
68 Positioning the Program Pointer
69 Running Programs
69 Starting Programs With XEQ
70 Starting Programs With GTO and R/S
70 Stopping Programs
71 Clearing Programs
71 Editing Programs
72 Stepping Through Programs
73 Sample Program: Pythagorean Theorem
75 Sample Program: Random Number Generator
76 Subroutines
80 Branching and Conditionals
80 Branching (GTO)
81 Conditional Instructions—Decisions and
Control
85 Keystrokes for Other Conditionals
87 Available Program Memory
87 Nonprogrammable Functions
88 Built-in Program Library
89 Root Finder (root)
91 Numerical Integration (int)
94 Complex Operations (CPL)
97 3 x 3 Matrix Operations (3 bY 3)
102 Quadratic Equation (qUAd)
105 Curve Fitting (Fit)
Contents
7
Appendix
109 Assistance, Batteries, Memory, and Service
109 Obtaining Help in Operating the Calculator
109 Answers to Common Questions
111 Power and Batteries
111 Low Power Annunciator ==]
111 Installing Batteries
113 Resetting the Calculator
114 Erasing Continuous Memory
114 Environmental Limits
114 Determining if the Calculator Requires Service
116 Confirming Calculator Operation—the Self-Test
117 Limited One-Year Warranty
117 What is Covered
117 What is Not Covered
118 Consumer Transactions in the United Kingdom
118 If the Calculator Requires Service
118 Obtaining Service
119 Service Charge
119 Shipping Instructions
120 Warranty on Service
120 Service Agreements
120 Regulatory Information
122 Messages
124 Index
8 Contents
Getting Started
Power On and Off
To turn on your HP-20S, press (the key above the
“ON” label). To turn the calculator off, press either shift
key ([(=y] or []), then [C] (also written [+] or (¢*]
[OFF )).
Since the calculator has Continuous Memory, turning it off does not affect
the information you've stored. To conserve energy, the calculator turns itself
off approximately 10 minutes after you stop using it. The calculator’s three
alkaline batteries last approximately a vear. If vou see the low-battery
symbol (&) in the display, replace the batteries as soon as possible.
Refer to the appendix for more information.
Adjusting the Display Contrast
To change the display contrast, hold down [C) and press [+] or [-].
Simple Arithmetic Calculations
If you make a typing mistake while entering a number, press [4] to
erase the incorrect digits.
1: Getting Started 9
Arithmetic Operators. The following examples demonstrate using
the arithmetic operators (+), [=], [x], (+), and (exponentiation)*.
Keys: Display: Description:
24.715 62.471 [=] 87.1860 Adds 24.715 and
62.471.
When a calculation has been completed (by pressing [=)), pressing a
number key starts a new calculation:
19 12.68 [=] 240.9200 Calculates 19 x 12.68.
is the exponentiation operator:
4.7 3 =) 103.8230 Calculates 4.73.
If you press an operator key after completing a calculation, the cal-
culation is continued:
115.5 115.5_ Continues the
calculation.
[=] 219.3230 Completes the calcula-
tion of 4.73 + 115.5.
You can do chain calculations without using [=] after each step. Calcu-
late 6.9 x 5.35 — 0.918:
6.9 5.35 [+] 36.9150 Pressing (+] displays
the intermediate an-
swer, showing result of
6.9 x 5.35.
‚918 0.918_ Continues the
calculation.
[=] 40.2124 Completes the
calculation.
* If you press more than one operator, for example [+] (=; [+] x] [F], all are ignored except
the last one.
10 1: Getting Started
Chain calculations are interpreted according to the priority of the op-
erators in the expression. Calculate 4 + (9 x 3):
4 [+] 9 [x]
3 (=)
9.0000
31.0000
The addition is de-
layed; (x] has higher
priority than (+).
Calculates
4 + (9 x 3).
Negative Numbers. Enter the number and press +].
Calculate —75 = 3:
Keys:
75 (#5
(#] 3 (=)
Calculate 0.4 — e- 11:
45119)
(=)
Display:
—75—
— 25.0000
—1.1_
0.3329
0.0671
Description:
Changes the sign of
75.
Calculates the result.
Calculates e—-1-1,
Completes the
calculation.
1: Getting Started 11
Understanding the Display and Keyboard
The Cursor
The cursor (_) is visible when you are in the process of entering a
number.
Clearing the Calculator
When the cursor is on, [«] erases the last digit you entered. While you are
entering a number, pressing [C] clears it to 0. Otherwise, [C] clears the
display of its current contents and cancels the current calculation.
While you are entering a number, pressing clears it to 0. Other-
wise, clears the display of its current contents and cancels the
current calculation.
Clearing Messages. [«] and also clear messages. When the
HP-205 is displaying an error message, [€] or clears the message
and restores the original contents of the display.
Clearing Memory
—— To clear portions of memory:
bozzoc
OCC SoC
Keys Description
La) Clears registers Rg through Rg.
Га Clears statistical registers R, through Rg.
(>) (CLPRGM Clears programs when in Program mode.
12 1: Getting Started
To clear all memory and reset the calculator, press and hold down
[C], then press and hold down both and (:+). When you release
them, all memory is cleared. The ALL CLr message is displayed.
Annunciators
Annunciators are symbols in the display that indicate the status of the
calculator.
Annunciator Status
(+ Left shift is active. When you press a key, the function la-
beled in blue above the key is executed (page 14).
[>] Right shift is active. When you press a key, the function
labeied in yellow above the key is executed (page 14).
has been pressed, or two values have been en-
tered or returned (page 14).
PEND An arithmetic operation is pending in addition to what
shows in the display.
к] Battery power is low (page 9).
GRAD The calculator is in Grads mode for trigonometric calcula-
tions (page 35).
RAD The calculator is in Radians mode for trigonometric cal-
culations (page 35).
HEX The calculator is in Hexadecimal mode (page 44).
OCT The calculator is in Octal mode (page 44).
BIN The calculator is in Binary mode (page 44).
PRGM The calculator is in Program mode. (Refer to chapters 6
and 7.)
1: Getting Started 13
The Shift Keys
Most keys have blue or yellow functions printed above the key. The
shift keys access these labeled operations: the blue shift key executes
a blue labeled operation; the yellow shift key executes a yellow la-
beled operation. To perform a shifted operation, press [+] or [>] to
turn on the shift annunciator ([<1) or (*]). Then, press the key that
has the desired label above it.
For example, pressing [4] followed by (also written [+1] [HEX)) puts
the calculator in Hexadecimal mode. Pressing [+] puts the
calculator in Decimal mode.
To perform consecutive shifted operations, hold down the shift key.
If you accidentally press [4] or [7], just press it again to turn off the
shift annunciator. If you press the wrong shift key, press the other
one to cancel it and display the correct one.
The INPUT Key
The key is used to separate two numbers when using two-
number functions or two-variable statistics.
The : annunciator is displayed if has been pressed. If a number
is in the display, press [C] to erase the : annunciator and the display.
If the cursor or an error message is visible in the display, press
twice to erase the : annunciator.
The SWAP Key
| Pressing [4] [SWAP] exchanges:
CODOCTI!
OIDOCCI
‚an O SOC
COCTU
14 1: Getting Started
® The last two numbers that you entered; for instance, the order of
division or subtraction.
EH The results of functions that return two values. The : annunciator
indicates that two results have been returned; press [4] to
see the hidden result.
mM The x- and y-values when using statistics.
The Alpha Keys
The A, B, C, D, E, and F labeis have several functions. They are used
as program labels and as digits in Hexadecimal mode.
Introducing the Math Functions
—— One-Number Functions. Math functions involving one
aos
DOOOCC
900
90003)
number use the number in the display:
Keys: Display: Description:
89.25 9.4472 Calculates 1/89.25 .
3.57 [+] 2.36 0.4237 1/2.36 is calculated
first.
=) 3.9937 Adds 3.57 and 1/2.36.
180 [>] 70.8661 Converts 180 centi-
meters to inches.
1: Getting Started 15
Two-Number Functions. When a function requires two numbers,
the numbers are entered like this: number] number2. Pressing
evaluates the current expression and displays :. For example,
the following keystrokes calculate the percent change between 17 and
29:
Keys: Display: Description:
17 17.0000 Enters numberl, dis-
plays : annunciator.
29 29 Enters number2.
[A 70.5882 Calculates the percent
change.
Calculate the number of combinations of four items taken two at a
time:
4 2 (>) 6.0000 Calculates number of
combinations.
If you enter number], then press a two-number function key without
pressing [INPUT], the calculator supplies a zero as number2. If you enter a
number, press [INPUT], and then press a two-number function key, the cal-
culator uses the same number for both numberl and number2.
Display Format of Numbers
When you turn on the HP-20S for the first time, numbers are displayed
with four decimal places and a period as the decimal point. The display
format controls how many digits appear in the display.
16 1: Getting Started
Regardless of the current display format, each number is stored as a
signed, 12-digit mantissa with a signed, three-digit exponent. For ex-
ample, pressing [*](=]in FIX 4 (four decimal places) displays 3.1416.
Internally, the number is stored as 3.14159265359 x 10000
If the result of a calculation is a number containing more significant
digits than can be displayed in the current display format, the dis-
played number is rounded to fit.
Specifying the Number of Displayed Decimal Places
(FIX)
To specify the number of displayed decimal places:
1. Press [+1] (FIX).
2. Enter the number of digits (0 through 9) that you wish
to appear after the decimal point.
Keys: Display: Description:
(A) 3 0.000 Displays three decimal
places.
45.6 [x] .1256 [=] 5.727
(A) 9 5.727360000 Displays nine decimal
places.
(A) 4 5.7274 Restores four decimal
places.
When a number is too large or too small to be displayed in FIX for-
mat, it 1s automatically displayed in scientific notation.
Displaying the Full Precision of Numbers (ALL)
| To set your calculator to display numbers as precisely as
8562535 possible, press [>] [ALL]. Trailing zeros are not displayed.
CCC WT
1: Getting Started 17
Scientific and Engineering Notation
——| Scientific and engineering notation express the number as
a mantissa multiplied by a power of 10. The letter E sepa-
rates the exponent from the mantissa.
Scientific Notation (SCI). Scientific notation uses a mantissa with
one digit to the left of the decimal point. For example, this is SCI 6:
Digits after Sign of
decimal point и exponent Power of 10
_4.234567E— se
т
Sign Mantissa
of
mantissa
To specify scientific notation:
1. Press [>] [SCl].
2. Enter the number of digits that you wish to appear after the dec-
imal point.
Engineering Notation (ENG). Engineering notation expresses a
number as a mantissa with one, two, or three digits to the left of the
decimal point, multiplied by 10 raised to a power that is a multiple of
3. For example, this is ENG 4:
Significant
digits after Sign of Power of 10
first digit exponent (multiples of 3)
—
— 12.345E —12
—
Sign Mantissa
of
mantissa
18 1: Getting Started
To specify engineering notation:
1. Press (+) (ENG].
2. Enter the number of significant digits that you wish to appear
after the first digit.
Entering Numbers With Exponents (E). Regardless of the current
display format, you can always enter a number as a mantissa fol-
lowed by an exponent:
1. Enter the mantissa. If the mantissa is negative, use to change
the sign.
2. Press [+] [E) (or [=] (E]) to start the exponent.
3. If the exponent is negative, press от [-).
4. Enter the exponent.
Calculate 4.78 x 1013 — 8 x 1025:
Keys: Display: Description:
4.78 [y] (E) 13 (+) 4.7800E13
8 (a) (E) 25 [=] 5.9750E — 13 5.975 x 10-15,
Calculate — 2.36 x 10-15 x 12:
2.36 [FA] [A (€) FA) 15 —2.832 x 10714
12 (5) —2.8320E —14
Interchanging the Period and Comma
|! You can interchange the period and comma used as the
ОС decimal point and digit separator. For example, one mil-
lion can be displayed:
1,000,000.0000 or 1.000.000,0000
lo toggle between the period and comma, press (9) [-7-).
1: Getting Started 19
Full Precision of a Number (SHOW)
To temporarily view all 12 stored mantissa digits of the
number in the display, press [+] and then hold down
[SHOW]. The 12 digits are shown without the decimal
point.
Starting with four decimal places ([%) 4):
Keys: Display: Description:
10 E) 7 Е) 1.4286
[A 142857142857 Displays 12 digits.
1 (=) 80 FA) (5) —0.0125
LA) — 125000000000 Displays 12 digits.
Range of Numbers
The range of numbers the HP-205 can store is shown below.
Underflow displays zero. Overflow displays the OFLO message for a
moment, then the largest positive or negative number possible.
Numbers the HP 20S Can Store
О
Overflow — Underflow ~~ Overflow
m2
tN mA
-9.99999999999 x 10”” 999999999999 x 10”
—499 — 499
-1 x 10 O 1x10
20 1: Getting Started
Messages
The HP-20S displays messages about the status of the calculator or
informs you that you have attempted an incorrect operation. To clear
a message from the display, press [C] or [€). Refer to page 122 for a
list of messages and their meanings.
1: Getting Started
21
2
Arithmetic and Storage
Registers
Chain Calculations
Chain calculations do a sequence of operations without pressing (=)
after each operation. The HP-20S interprets expressions using the sys-
tem of operator priority described in the next section.
Keys: Display: Description:
750 12 [+] 9,000.0000 Calculates intermedi-
ate value. PEND
annunciator is on.
360 [=] 25.0000 Completes the calcula-
tion. PEND
annunciator is off.
Operator Priority and Pending Operations
Some chain calculations might be interpreted several different ways.
For example, 9 + 12 — 3 has two interpretations:
о + 12 = 13 or Ir _
3 3
22 2: Arithmetic and Storage Registers
The HP-20S uses a system of operator priority to evaluate expres-
sions:
(exponentiation) Highest priority
KH
[=] Lowest priority
The HP-205 calculates an intermediate result when the next operator
you enter has lower or equal priority. When the next operator has
higher priority, the HP-20S retains the previous number(s). For exam-
ple, in the calculation:
9 [+] 12 [+] 3 [=]
division has a higher priority than additon. Thus, the 9 and [+] are
retained as a pending operation until the division is completed:
Keys: Display: Description:
9 [+] 12 [+] 12.0000 Pressing [+] does not
add 9 + 12.
3 [=) 13.0000
Calculate 4 x 73 plus 5 x 72 plus 6.
4 [х) 7 7.0000 has higher priority
than [x].
3 1,372.0000 Calculates 4 x 73.
5 5.0000 has higher priority
than [+].
7 7.0000 [>] has higher priority
than [x].
2 2_
1,617.0000 Adds 5 x 72 to 1,372.
6 [=] 1,623.0000 Completes the
calculation.
2: Arithmetic and Storage Registers 23
If a calculation requires that operations be done in an order inconsis-
tent with operator priority (for example, addition before multi-
plication), use parentheses. You can use a maximum of five pending
operations.*
Using Parentheses
Use parentheses to group operations and to specify the order in which
they are performed.’ For example, you can calculate:
9 + 12
3
by placing parentheses around the addition so that it is done before
the division:
Keys: Display: Description:
9 12 21.0000 evaluates expression
inside parentheses.
(+) 3 [=] 7.0000
Calculate __30 x V16.9 — 8:
85 — 12
30 [+] 30.0000
85 85_
(=) 85.0000 prevents division of
30 by 85.
12 73.0000 evaluates expression
inside parentheses.
0.4110 Calculates 30 — 73.
* There are less than five pending operations available if you have more than four pending
left parentheses. For example, vou can calculate 1 + (2 + (3 + (4 + (5 + 6.
T Closing parentheses at the end of the expression can be omitted. For example,
25 + (3 x (9 + 12 [=] is equivalent to 25 — (3 x (9 + 12)) [=].
24 2: Arithmetic and Storage Registers
16.9 16.9_
(-] 8 8.9000 evaluates expression
inside parentheses.
2.9833 Calculates V8.9 .
[=] 1.2260 Completes the
calculation.
Reusing the Previous Result (LAST)
When you start a new calculation, a copy of the last result
is stored in the LAST register. To recall that value to the
display, press (94) [LAST]. For example, LAST shortens the
following two calculations:
0.0821 x (18 + 273.1)
+ 13
0.0821 x (18 + 273.1)
Keys: Display: Description:
.0821 18 Displays first result,
273.1 D) [>] 23.8993 which is stored in
LAST, when next cal-
culation is started.
Closing parenthesis is
optional.
2 13 (+)(]) 23.8993 BY recalls the
previous result.
[=] 2.5439 Second result.
2: Arithmetic and Storage Registers 25
Exchanging Two Numbers (SWAP)
tt Pressing [+] exchanges the last two numbers that
@omooc| you entered during a calculation. For example, if you
OOO. have entered 44 [=] 75, reverses the order of
ООС
SOS the numbers to 75 (+) 44.
O 0010)
lo OCIO
Keys: Display: Description:
44 [+] 75 75_ Oops; you meant to
enter 75 — 44.
(A 44.0000 Swaps the 75 and 44.
[=) 1.7045 Completes the
calculation.
8 [+] 4 [+] 5 5_ Stop! You really
wanted to add 8 + 5
— 4,
(=) 4.0000 Swaps the 5 and 4.
a 9.2500 Completes the
calculation.
When a function returns two results, the : annunciator comes on.
Pressing [+3] [SWAP] exchanges the two results. For example, to convert
the rectangular coordinates (10,—15) to polar coordinates:
Keys: Display: Description:
Le) Sets Degrees mode.
10 10.0000 Stores x.
15 [a] —56.3099 Displays the angle. :
indicates another result
was calculated.
26 2: Arithmetic and Storage Registers
(A) 18.0278 Displays the radius.
0.0000 Clears the display.
Another use of [+] (SwWAP] is with functions that require two numbers
separated by [INPUT]. For example, to accumulate (x,y) data pairs in
the statistical registers, enter x-value y-value [>+). Pressing
(+3) (before pressing [=+]) exchanges the x-value and y-value.
Refer to page 56 for an example.
Using Storage Registers
Registers Ко through Rg are for storing numbers. They are
accessed using and [RCL]. When you are using the
statistics functions, Ry through Rg are used to store sum-
mation data.
" п, where n is an integer 0 through 9, copies the number in the
display to the designated register. The number is copied with full
precision.
a n copies the contents of Ry to the display. The number is dis-
played in the current display format.
The following keystrokes use R; and R, to calculate:
(27.1 + 35.6) x 1.0823
(27.1 + 35.6)1-0823
Keys: Display: Description:
27.1 35.6 [=] 62.7000
STO 62.7000 Calculator awaits regis-
ter number.
1 62.7000 Stores 62.7 in R,.
2: Arithmetic and Storage Registers 27
1.0823 [STO] 2
[+]
RCL
LY) (REL) 2
=)
1.0823
67.8602
67.8602
62.7000
1.0823
0.7699
Stores 1.0823 in R,.
Calculator awaits regis-
ter number.
Recalls contents of R;.
Recalls contents of R,.
Exponentiation is done
before division.
To cancel store or recall after pressing or [RCL], press or (+).
Clearing Registers. Press (+) to clear all registers. To clear an
individual register, store 0 in it. It is unnecessary to clear a register
before storing a value since n replaces the previous value with
the new value.
Storage Register Arithmetic. This table describes the arithmetic
operations that can be performed on numbers stored in registers. The
result is stored in the register.
Keys New Number in Register n
n | old number + displayed number
(STO][-] n | old number — displayed number
n | old number x displayed number
[STO][+) n | old number + displayed number
The following keystrokes use two registers to calculate:
1.097 х 25.6671 = ?
1.097 х 35.6671 = ?
28 2: Arithmetic and Storage Registers
Keys:
1.097 0
[x] 25.6671 1
(=)
0
Lx] 10 [sto] [+] 1
[RCL] 1
[=]
Display:
1.0970
25.6671
28.1568
1.0970
10.0000
35.6671
39.1268
Description:
Stores 1.097 in Ro.
Stores 25.6671 in Ry.
First answer.
Recalls contents of Rj
and starts a new
calculation.
Adds 10 to contents of
Ri.
Contents of R; replace
right-most number of
pending expression.
Second answer.
2: Arithmetic and Storage Registers 29
Numeric Functions
HP-20S functions require either one or two arguments (an argument
is a number acted upon by a function):
mM Functions with one argument act on the number in the display. For
example, 6 calculates the square root of 6.
@ Functions with two arguments use to separate the argu-
ments. For example, 4 5 [a] calculates the percent
change between 4 and 5. The arguments can be expressions. For
example, 1+] 3 2(+]3[A) also calculates the percent
change between 4 and 5.
B Polar/rectangular coordinate conversions use two arguments and
return two results.
General and Logarithmic Functions
30 3: Numeric Functions
Key(s) Description
Square root.
(A) (=?) Square.
Natural antilogarithm.
[A Base 10 antilogarithm.
Natural logarithm.
[+] Base 10 logarithm.
Keys: Display: Description:
45 6.7082 V45 .
Calculate 10-42 x 10-37:
4.5 E 3.1623Е — 5 Calculates base 10
antilogarithm of —4.5.
3.7 En 0.0002 Calculates base 10
antilogarithm of —3.7.
[=] 6.3096Е — 9 Multiplies the two
antilogarithms.
Reciprocal
L—— Press to calculate the reciprocal of the number in the
pos onc] display. Calculate V3 + Va:
909002
99000
0 0000!
lo 9000)
3: Numeric Functions 31
Keys: Display: Description:
3 4 0.2500 Calculates 1 ~ 3 and
1 — 4. Addition is
deferred.
[=] 0.5833 Adds the two
reciprocals.
The exponentiation operator, [¥*], can also be used to find roots of
positive numbers. For example, find Y3 (which is. equivalent to 31/%):
Keys: Display: Description:
3 [y] 3.0000 Exponentiation.
4 (=] 1.3161 Reciprocal of power
will calculate the root.
Percent Functions
Percent
The (|) function performs two different operations:
B When there is no pending operator, or the last operator you entered
was [x], (+), or (Y), pressing [a] [%] divides the displayed number
by 100.
E When [+] or [-] is the pending operator, [4] (%} interprets the dis-
played number as a percent and returns that percent of the number
preceding the [+] or [-].
32 3: Numeric Functions
Example: Percent Calculations. Find 27% of 85.3.
Keys: Display: Description:
85.3 [x] 27 (+ 0.2700 Divides 27 by 100.
[=] 23.0310 Calculates 27% of
85.3.
Find the number that is 25% less than 200.
200 [=] 25 [=] 50.0000 Calculates 25% of 200.
(>) 150.0000 Completes the
calculation.
Percent Change
To calculate the percent change between two numbers, nj and no, ex-
pressed as a percentage of n,, enter:
п; LINPUTJ 1, [3 [%CHG)
Example: Percent Change Calculations. Calculate the percent
change between 291.7 and 316.8.
Keys: Display: Description:
291.7 291.7000 Enters n;.
316.8 [+] 8.6047 Calculates percent
change.
Calculate the percent change between (12 x 5) and (65 + 18).
12 5 60.0000 Calculates and enters
ny.
65 18 (+) 38.3333 Percent change be-
tween 60 and
(65 + 18).
3: Numeric Functions 33
Pi (7)
ooo Pressing [(+*)[r) displays the value of 7. Although the dis-
Gass33| played value is rounded to the current display format, the
2553 12-digit value is actually used.
129000;
o 0000
00009,
Example: Surface Area of a Sphere. Find the surface area of a
sphere with radius=4.5 inches (surface area = 477”).
Keys: Display: Description:
4 (x][] 3.1416 Displays 7.
4.5 (a) [7] 20.2500 Displays 4.5%.
[=] 254.4690 Surface area in square
inches.
Trigonometric Modes and Functions
Changing the Trigonometric Mode
ji The trigonometric mode determines how numbers are in-
| ооо ЗО
meo terpreted when using the trigonometric and coordinate
- conversion functions.
34 3: Numeric Functions
Keys Description Annunciator
(~~) Sets Degrees mode. There are 360 degrees None
in a circle. Angles are measured in decimal
degrees (rather than degrees-minutes-
seconds).
[>] Sets Radians mode. There are 2x radians in RAD
a circle,
(~] Sets Grads mode. There are 400 grads in a GRAD
circle.
To exit RAD or GRAD mode press [¢*] (DEG).
Trigonometric Functions
| Angles are interpreted in decimal degrees, radians, or
soso] grads depending on the current trigonometric mode.
C_oooc
О О)
ooocz
с оО,
в ооо’
Keys Function Keys Function
sine [+1] arc sine
COS cosine [+] arc cosine
TAN tangent [a] arc tangent
Keys: Display: Description:
”) Sets Degrees mode.
15 0.2588 Sine of 15°.
1 60 1.7321 Tangent of 60°.
(=) 2.7321 Calculates
1 + tan 60°.
3: Numeric Functions 35
35 (A 69.5127 Arc cosine of 0.35.
[=] -62 [+] 51.6839 Arc cosine of 0.62.
[=] 17.8288 Arc cosine of 0.35
— arc cosine of 0.62.
Angle and Hour Conversions
Keys Function
[+1] To hours; converts the number from hours(degrees)-minutes-
seconds-decimal seconds format (H.MMSSss or D.MMSSss)
to decimal hours (or degrees) format.
(~] To hours-minutes-seconds; converts the number from deci-
mal hours (or degrees) to hours(degrees)-minutes-seconds-
decimal seconds format (H.MMSSss or D.MMSSss).
(+) To degrees; converts the number from a radian value to its
decimal degree equivalent.
i”) To radians; converts the number from a decimal degree value
to its radian equivalent.
36 3: Numeric Functions
Angle in
radians
[=][=DEG]| |l=][=RADI
Angle in decimal Decimal hours
degrees (D.d) (H.h)
[>]uvs]| |([S)]> HA] [>] avs] ¡<> HR]
Angle in Hours in
D.MMSSss H.MMSSss
format format
Keys: Display: Description:
1.79 x) (>) (7) =) 5.6235 Calculates 1.797.
LA 322.2000 Converts 1.797 radians
to degrees.
90.2015 (+) 90.3375 Converts 90 degrees,
20 minutes, 15 seconds
to decimal degrees.
25.2589 (~] 25.1532 25.2589 degrees = 25
degrees, 15 minutes,
32 seconds.
[+] 251532040000 Shows decimal seconds
(32.04 seconds).
3: Numeric Functions 37
Coordinate Conversions
LJ Coordinate conversions require pairs of data separated by
; 8 is interpreted according to the current trigono-
metric mode.
fe nn nn кн Em mm Em Em Em == Em Em Em me = ay am A Ee
(x-coordinate, y-coordinate)
Converting From Rectangular to Polar Coordinates:
1. Enter x y [a] to display 8.
2. Press (4) to display r.
Converting From Polar to Rectangular Coordinates:
1. Enter r 0 (>) to display y.
2. Press (+) to display x.
Example: Coordinate Conversions. Convert the rectangular co-
ordinates (10, —15) to polar coordinates:
38 3: Numeric Functions
Keys: Display: Description:
[7 Sets Degrees mode.
10 10.0000 Enters x.
15 [q] —56.3099 Enters y, calculates r
and 8, and displays 0.
(A 18.0278 Displays r.
Convert the polar coordinates (7, 30°) to rectangular coordinates:
7 7.0000 Enters 7.
30 [] 3.5000 Enters 6, calculates x
and y, and displays y.
[a] 6.0622 Displays x.
Probability Functions
Your HP-20S can calculate factorials, combinations, and
permutations.
Factorial. Pressing [>] [n!] calculates the factorial of the number in
the display. The number must be an integer in the range 0 through
253.
Combinations and Permutations. The keystrokes for calculating
combinations and permutations are:
n-value r-value [>]
or
n-value r-value (>)
3: Numeric Functions 39
The number of combinations of n objects taken r at a time is the num-
ber of different sets containing r items that can be taken from a larger
group of n items. No item occurs more than once in the set of r items,
and different orders of the same r items are not counted separately.
The number of permutations of n objects taken r at a time is the num-
ber of different arrangements of r items that can be taken from a
larger group of n items. No item can occur more than once in an ar-
rangement, and different orders of the same r items are counted
separately.
Keys: Display:
5 5.0000
3 (] 10.0000
5 5.0000
3 (2) 60.0000
Probability Formulas
Par = ——
(п — г)!
Description:
Enters the n-value.
Enters the r-value; cal-
culates combinations
of 5 objects, 3 at a
time.
Enters the n-value.
Enters the r-value; cal-
culates permutations
of 5 objects, 3 at a
time.
Hyperbolic Functions
40 3: Numeric Functions
Keys Function
A) Hyperbolic sine.
[+] EY Inverse hyperbolic sine.
(A Hyperbolic cosine.
(A) [a] Inverse hyperbolic cosine.
(A) Hyperbolic tangent.
La) E Inverse hyperbolic tangent.
Keys: Display: Description:
5 (4 74.2032 Hyperbolic sine.
540.25 (+) Inverse hyperbolic
a) 6.9852 cosine.
Parts of Numbers
Keys Function
(+) Integer part of the number.
ir) Fractional part of the number (the number without its integer
part).
EY Absolute value of the number.
(~~) Rounds the number internally to the number of digits specified
in the current FIX, SCI, or ENG display format. (No rounding
occurs in ALL mode.)
3: Numeric Functions 41
Keys: Display: Description:
12.3456789 [=] 12.3457 Enters a nine-digit
number.
A) 123456789000 Displays full precision
of number.
Fuel E 123457000000 Number is rounded
internally.
Unit Conversions
Keys: Converts:
(A) Ib (pounds) to kg (kilograms)
Le) kg (kilograms) to Ib (pounds)
(A) °F (Fahrenheit) to °C (Celsius)
ed °C (Celsius) to °F (Fahrenheit)
=) in (inches) to cm (centimeters)
(~] cm (centimeters) to in (inches)
[A gal (gallons) to | (liters)
=] | (liters) to gal (gallons)
42 3: Numeric Functions
Example: Unit Conversions. Convert 100 pounds to kilograms.
Keys: Display:
100 (9) 45.3592
Convert 6 feet to centimeters.
6 (x) 12 [5] 72.0000
E 182.8800
Description:
Converts 100 pounds
to kilograms.
Converts 6 feet to
inches.
Converts 72 inches to
centimeters.
3: Numeric Functions 43
Base Conversions and
Base Arithmetic
The HP-205 enables you to switch between four number-base
modes—decimal, hexadecimal, octal, and binary. You can convert
numbers from one base to another and perform arithmetic operations
in any of the four bases. The HEX, OCT, and BIN annunciators indi-
cate the current (nondecimal) mode.
Switching Bases
L—— 1 To switch to a different base mode, press:
CIO
Mode Keys Annunciator
Hexadecimal | (+) HEX
Octal (>) OCT
Decimal (+) None
Binary Pad BIN
44 4: Base Conversions and Base Arithmetic
When you switch to a new base:
B The number in the display is converted to the new mode.
® When you switch from decimal to another base, the integer part of
the number is displayed in the new base. Internally, the 12-digit
representation of the decimal number is preserved. When you
switch back to decimal base, the full decimal number is displayed
in the current display format. Numbers are truncated to integers in-
ternally only when they are used in an arithmetic operation in
hexadecimal, octal, or binary base.
Hexadecimal, octal, and binary numbers are right-justified in the
display—that is, they are displayed as far to the right as possible.
In Octal and Binary modes: certain keys are inactive. For example,
8 and 9 do not function in Octal mode; 2 through 9 do not function
in Binary mode. If you press an inactive key, the base annunciator
will blink.
In Hexadecimal mode: The top-row keys become the hexadecimal
digits A through F.
In Binary mode: If the binary number is longer than eight bits, the
right-most (least significant) eight bits are shown, and a window
number appears at the left of the display.
Window number ap- Least significant 8 dig-
pears if number has — its of binary number.
more than 8 digits. 0 11111011
Press [-] to view the other eight-bit segments.
The binary number 101101101111110110111100010111010111 looks
lik
e this in the windows:
4
1011 | 3 01101111 | 2 11011011 | 1 11000101 | O 11010111
| ! | ! !
Window Numbers
4: Base Conversions and Base Arithmetic 45
Example: Converting Between Bases. The following keystrokes
do a series of base conversions. Convert 1251, to binary, octal, and
hexadecimal numbers:
Keys: Display:
125 [~] 1111101
Fa 175
La) 7d
(A) 125.0000
Convert 24FF,, to binary base.
LA) 7d
24FF [~) [BIN] 0 11111111
a 1 1100100
(-] O 11111111
В 1 1100100
Description:
Switches to
binary base;
Switches to octal base;
Switches to
hexadecimal base;
175g — 7D 16.
Restores decimal base.
Sets hexadecimal base.
Converts 24FF¢ to bi-
nary base and displays
least-significant eight
digits.
Displays six remaining
digits in window 1.
Back to window 0.
Back to window 1,
again.
The binary number is 10010011111111. Now, convert to decimal
base:
E 9,471.0000
Restores decimal base.
46 4: Base Conversions and Base Arithmetic
Representation of Numbers
The internal representation of a number does not change when a
number is converted to another base. When a number is converted
from its decimal value to a different base, the integer part of the num-
ber is represented as a 36-bit binary number.
In Hexadecimal, Octal, and Binary modes, numbers are displayed in
2's complement format. The left-most bit of the binary representation
of a number is the sign bit. It is set to 1 for negative numbers.
Keys: Display: Description:
8738 (+) 2222 Converts 87381, to
hexadecimal base.
FFFFFdddE 2's complement.
[a] —8,738.0000 Negative decimal
number.
Range of Hexadecimal, Octal, and Binary
Numbers
The 36-bit word size determines the range of numbers that can be
represented in hexadecimal, octal, or binary base, and the range of
decimal numbers that can be converted to other bases.
4: Base Conversions and Base Arithmetic 47
Range of Numbers for Base Conversions
B Largest Largest
ase Positive Integer Negative Integer
DEC 34,359,738,367 —34,359,738,368
HEX 7FFFFFFFF 800000000
OCT 377777777777 400000000000
BIN (dis- 4 111 4 1000
played in 3 11111111 3 00000000
windows 0 2 11111111 2 00000000
through 4) 1 11111111 1 00000000
0 11111111 0 00000000
When you enter numbers in hexadecimal, octal, or binary base, digit
entry halts if you attempt to enter too many digits. For example, if
you attempt to enter a 10-digit hexadecimal number, digit entry halts
after the ninth digit.
If the display contains a decimal number outside the range, switching
to another base displays too big.
Keys:
1) (E) 20 (*])
(A) (DEC)
Display:
too big
1.0000E20
Description:
1 x 1020 cannot be con-
verted to octal base.
Restores decimal base.
Numbers that are outside the conversion range are represented by the
message too big.
341630
(E} 8 (A) (HEX)
(A) (Swap)
1) (DEC)
3 x 108 is 11ETA300,5
11E1A300 in Hexadecimal mode.
too big
300,000,000,000.
0.0000
3 x 10'! is outside the
base-conversion range.
Restores decimal base.
Clears the display.
48 4: Base Conversions and Base Arithmetic
Arithmetic Operations
All functions are active in all bases (except nonshifted functions on
the top row keys).
All arithmetic operations in hexadecimal, octal, and binary base use
2's complement arithmetic. When a division produces a remainder,
only the integer portion of the number is retained.
Example: Arithmetic in Hexadecimal, Octal, and Binary
Bases. Calculate 12F;¢ + Е9А |;
Keys: Display: Description:
(+) 0 Sets hexadecimal base.
12F E9A [=] FC9 Adds hexadecimal
numbers.
Calculate 7760, — 4326g:
(~~) 7711 Switches to octal base
(ВСЭ; — 77113).
7760 [-] 4326 [=] 3432 Subtracts octal
numbers.
Calculate 100g + 54:
100 [+] 5 [=] 14 Integer part of result.
Compare the previous result to the decimal division shown below:
100 (+) 5 (9) 5.0000 Converts all values in
the expression to Deci-
mal mode.
[=] 12.8000 Division of 6419 — 510.
(100% = 6410).
ir) 14 Integer portion of
12.819 in octal base.
4: Base Conversions and Arithmetic 49
Add 5A0,¢ plus 1001100.
(A) [HEX] 5A0
ir) (BIN)
1001100 [=]
[J
S5A0_
0 10100000
0 11101100
1 101
Enters hexadecimal
number.
Switches to binary
base.
Calculates result in bi-
nary base. Displays
window 0.
Displays window 1.
Arithmetic results that cannot be represented in 36 bits display an
overflow warning and the largest positive or negative number:
(=) [HEX]
SAAAAAAAA [x] 4 [=]
EBBBBBBBB [=]
6CCCCCCCC [=]
Press (+) to return to Decimal mode.
5EC
OFLO
7FFFFFFFF
OFLO
800000000
Switches to hexadeci-
mal base.
Temporary message.
Largest positive
number.
Temporary message.
Largest negative
number.
50 4: Base Conversions and Base Arithmetic
Statistical Calculations
The and (+) keys are used to enter and delete
©2===5 statistical data for one- and two-variable statistics. Sum-
OEI
Sooo. Mation data is accumulated in registers R, through Ro.
29225 Once you enter the data, you can use the statistical func-
D0o000. ”
o o tions to calculate:
К)
@ Mean and standard deviation.
M Linear regression and linear estimation.
B Weighted mean.
B Summation statistics: n, Ex, Ex”, Ey, Zy?, and Exy.
Entering Statistical Data
There is no limit to the number of values you can accumulate in the
statistical registers. However, if statistical data causes the value of a
statistical register to exceed +9.99999999999 x 10%, the HP-205
displays a temporary overflow warning (OFLO).
The statistical registers, R4 through Rg, can be used to store data for
other than statistical use. To clear any data that may have been previ-
ously stored, press [+] [CL=).
Entering Data for One-Variable Statistics
To enter x data for one-variable statistics:
1. Clear any previous contents of Ry through Rg by pressing
(7) [6 5).
5: Statistical Calculations 51
3.
Enter the first value and press [=+). The HP-205 displays the
number of items (n) accumulated; in this case, 1.0000.
Continue accumulating values by entering the numbers and
pressing [+]. The n-value is updated with each entry.
Entering Data for Two-Variable Statistics or Weighted Mean
lo enter x,y-pairs of statistical data:
4.
Clear any previous contents of R, through Ro by pressing
le) (cs).
Enter the first x-value and press [INPUT]. The HP-20S displays
the x-value.
Enter the corresponding y-value and press [Z+]. The HP-20S dis-
plays the number of pairs of items (n) accumulated; in this case,
1.0000.
Continue entering x,y-pairs. The n-value is incremented with
each entry.
lo enter data for calculating the weighted mean, enter each data
value as x, and its corresponding weight as y.
Correcting Statistical Data
Incorrect entries can be deleted using (4) (F-]. If either value of an
X,y-pair is incorrect, you must delete and reenter both values.
To delete and reenter statistical data:
1.
52
Enter the x-value to be deleted. If the data consists of x,y-pairs,
press and then enter the y-value.
Press [=] to delete the value(s). The n-value is decreased
by 1.
Enter the correct value or x,y-pair using (Z+).
5: Statistical Calculations
Clearing Statistical Data
Clear the statistical registers before entering new data so
that R; through Ro are zero when you begin. If you don't
clear the registers, data currently stored in R4 through Rg
is automatically included in the summation calculations.
To clear the statistical registers, press [>] [CLS]. The dis-
play and any pending operations are also cleared.
Summary of Statistical Calculations
Some functions return two values. The : annunciator indicates that
two values have been returned. Press [+] to see the hidden
value.
Keys Description E to
Display
4 (n) Number of data points
entered.
5 (Ex) Sum of the x-values.
6 (y) Sum of the y-values.
7 (Ex?) Sum of the squares of
the x-values.
8 (Ey?) Sum of the squares of
the y-values.
9 (Exy) Sum of the products of
the x- and y-values.
ed Arithmetic mean (aver- | Mean (average) of the
age) of the x-values. y-values if you entered
y-data.
(] Mean of the x-values
weighted by the y-
values.
5: Statistical Calculations 53
Keys Description [+ to
Display
(>) Standard deviation of | Standard deviation of
the x-values.* the y-values if you en-
tered y-data.*
y -value [>] Estimate of % for a Correlation
given value of y. coefficient.+
x-value [>] Estimate of y for a Correlation
given value of x. coefficient.
ir) Siope (m) of the calcu- | y-intercept (b) of the
lated line. calculated line.
* The standard deviation is a measure of how dispersed the numbers are about the mean.
The HP-20S calculates the sample standard deviation, which assumes the data is a sam-
pling of a larger, complete set of data. If the data constitutes the entire population of data.
the true population, refer to page 55, “Calculating the Population Standard Deviation.”
{ The correlation coefficient is a number in the range —1 through +1 that measures how
closely the data fits the calculated line. A value of +1 indicates a perfect positive correla-
tion, and —1 indicates a perfect negative correlation. A value close to zero indicates the
curve is a poor fit.
Mean, Standard Deviation, and Summation
Statistics
—— — ; You can calculate the mean, standard deviation, n, Ex,
Deecss
00623] and =x? of x-data. For x,y-data, you can also calculate the
ОС)
mean and standard deviation of the y-data and Zy, Ey?,
and Zxy.
Example: Calculating the Mean, Standard Deviation, and Root
Mean Square. A yacht captain wants to determine how long it takes
to change a sail. She randomly chooses six members of her crew, ob-
serves them as they carry out the sail change, and records the number
of minutes required: 4.5, 4, 2, 3.25, 3.5, 3.75.
54 5: Statistical Calculations
Calculate the mean and standard deviation of the times. Also, calcu-
late the root mean square, using the formula VEx"/n.
Keys:
[=] [CLE]
4.5
4
2
3.25
3.5
3.75
Le) ls)
Le) [Sx8y}
[RCL] 7
[+](RCL] 4
(=) (]
Display:
0.0000
1.0000
6.0000
3.5000
0.8515
77.1250
6.0000
3.5853
Description:
Clears the statistical
registers.
Enters the first time.
Enters the remaining
data.
Calculates the mean.
Calculates the standard
deviation.
Displays Ex”.
Displays n.
Calculates the root
mean square.
Calculating the Population Standard Devia-
tion
The standard deviations calculated by [>] and
[г] [9] are the sample standard deviations.
They assume that the data is a sampling of a larger, com-
plete set of data. If the data constitutes the entire
population of data, the true population standard deviation
can be calculated by calculating the mean of the original
data, adding the mean to the statistical data using (+], and then cal-
culating the standard deviation. For two-variable statistics, after
calculating the mean of the original data, press [+] to put the
data in the proper order (y in the display) then press (=+].
5: Statistical Calculations 55
Example: Population Standard Deviation. The coach has four
new players on the team with heights of 193, 182, 177, and 185 centi-
meters and weights of 90, 81, 83, and 77 kilograms. Find the mean
and population standard deviations of their heights and weights.
Keys: Display: Description:
”) 0.0000 Clears the statistical
registers.
193 90 1.0000 Enters height and
weight of player 1.
182 81 2.0000 Enters height and
weight of player 2.
177 83 3.0000 Enters height and
welght of player 3.
185 77 4.0000 Enters height and
weight of player 4.
[>] 184.2500 Calculates mean of
heights (x).
E 82.7500 Displays mean of
weights (y).
5.0000 Adds means to data.
(Data must be in xy
order with y in the
display.)
Га 5.8041 Calculates population
standard deviation for
heights (x).
(A) 4.7104 Displays population
standard deviation for
weights (y).
56 5: Statistical Calculations
Linear Regression and Estimation
Linear regression is a statistical method for finding a
straight line that best fits a set of x,y-data. There must be
at least two different x,y-pairs. The straight line provides
a relationship between the x- and y-variables:
y = mx + b, where m is the slope and b is the
y-intercept.
Linear Regression. To do a linear regression calculation:
1. Enter the x,y-data using the instructions on page 52.
2. Press:
u (ee) (Er) (4) (Swap) (or (>) (3) (4) (SWAr)) to display
r, the correlation coefficient.
a (>) to display m, the slope of the line, then (<) to
display b, the y-intercept.
Linear Estimation. The straight line calculated by linear regression
can be used to estimate a y-value for a given x-value, or vice versa. To
do linear estimation calculations:
1. Enter the x,y-data using the instructions on page 52.
2. Enter the known x-value or y-value.
® To estimate x for the given y, enter the y-value, then press
Llar).
B To estimate y for the given x, enter the x-value, then press
Le) Gr).
Example: Linear Regression and Estimation. The rate of a certain
chemical reaction depends on the initial concentration of one chemi-
cal. When the reaction is run repeatedly, varying only the initial
concentration of the chemical, the following rates are observed:
Concentration X 0.050 0.075 0.10 0.125 0.20
(moles per liter)
Rate Y (moles per 0.0062 0.00941 0.0140 0.0146 0.023
liter-seconds)
5: Statistical Calculations 57
Calculate the slope and y-intercept of the best straight line fitted to
the data. Also calculate the correlation coefficient.
Keys:
Le) LeLz]
05 0062
075 00941
1 014
125 0146
2 023
[2] [mb]
LA) [Swap]
(] (Er) (A) (Swap)
Display:
0.0000
5.0000
0.1093
0.0014
0.9890
Description:
Clears the statistical
registers.
Enters the x,y-data.
Displays the slope.
Displays the y-inter-
cept. : indicates
another result.
Displays the correla-
tion coefficient.
Estimate the rate of the reaction when the concentration equals 0.09
moles per liter.
09 (>) 5.)
0.0113
Calculates estimate of
y for x=0.09.
What concentration is necessary for the rate to equal 0.0200?
02 [>] Er]
0.1700
0.0000
58 5: Statistical Calculations
Calculates estimate of
x for y=0.02.
Clears display and :
annunciator.
Weighted Mean
X1, X32, + + +, X, OCCUrring with weights y, yo,. .., Y, .
1. Use to enter the data as x y-pairs. The y-values are
the weights of the x-values.
2. Press [>] (w).
Example: Weighted Mean. Your manufacturing company purchases
a certain part four times a year. Last year's purchases were:
Price/Part $4.25 $4.60 $4.70 $4.10
Number of 250 800 900 1000
Parts
Calculate the average price per part.
Keys: Display: Description:
rad 0.0000 Clears the statistical
registers.
4.25 250
4.6 800
4.7 900
4.1 1000 4.0000 Enters the data and
their weights.
(fr) 4.4314 Calculates weighted
mean (average part
price).
5: Statistical Calculations 59
Statistical Formulas
zu 7-4 y Ty
7
5 2x2y
yx? — (20°
_ b
^
Y—0
т
n n “ y
| / (5х)?
ух” —
S, = n
w
Sy = H
2x2
т y n
2
2
y
X
X
2x2y
у = тх + |
„ _ C9
n
; f y — Ху)
n
b = y — mx Y
2 (Ex _
2
— 1
(
— 1
2X
n
n
Ve ©)
n
>? a)
60 5: Statistical Calculations
Programming
A program lets you repeat calculations without repeating keystrokes.
To enter a program, you use the same keystrokes that you use man-
ually, but press the keys while you are in Program mode. Your
calculator will then repeat them on command.
The HP-205 enables you to use its programming features in two
ways. You can write original programs by having the calculator record
and repeat your keystrokes, or you can run any one of six built-in
programs.
Any program, regardless of whether you entered it yourself or loaded
it from the built-in program library, can be run and edited. This chap-
ter explains how to do original programming and editing. Chapter 7
gives instructions on using the built-in programs.
Before the programming concepts and commands are explained in de-
tail, try this quick example. Start by writing out the formula, then
solve the problem from the keyboard.
A Simple Programming Example. To find the cross-sectional area
of a pipe with a diameter of 5 inches, use the formula
Before doing the calculation, rearrange the equation in this order
d° x x — 4 = A
Enter 5 in the display and press:
(RE) (=) 4 (=)
giving a result of 19.6350 square inches.
6: Programming 61
But what if you wanted to find the area of many different pipes?
Rather than repeat the keystrokes each time (varying only the “5” for
the different diameters), you can put the repeatable keystrokes into a
program that would look like this:
01 x?
02
03
04
05
06
| A Xx
This program assumes that the value for the diameter is in the display
when the program starts to run. It calculates and displays the area. To
enter this program into program memory, press the following keys.
(Don’t worry about the numbers that appear in your display—rhey re
called keycodes and are explained later.) If you notice a mistake while
typing a line, press [€] to erase the line, then type it over.
62 6: Programming
mooozo!
'Deocce
!amm oc cl
wecocooi
обе!
lo оО!
909027
rs
Keys: Display: Description:
a) Enters Program mode.
Le) 00- Clears any previously
stored programs.
(A) 01- 51 11 Enters the keystrokes
that create the
program.
02- 55
Le) 03- 61 22
[=] 04- 45
4 05- 4
[=] 06- 74
a) Exits Program mode.
Now try running this program to find the area of a pipe with a diam-
eter of 5 inches.
Keys: Display: Description:
0.0000 Clears the display.
[a] EC) 0.0000 Goes to the first line of
the program.
5 19.6350 The answer!
6: Programming 63
Creating Programs
The steps you follow to create programs are:
Enter Program mode.
Enter the repeatable keystrokes.
Exit Program mode.
SO N +
Run the program.
We will continue using the pipe area program to illustrate program-
ming concepts. As you were programming, you may have noticed the
numbers in the display. They are line numbers and keycodes.
Line Numbers. Line numbers appear left-justified in the display as
you are entering your program. The numbers, 00 through 99, are fol-
lowed by a dash. The dash separates the line numbers from keycodes.
Keycodes. The numbers to the right of the line number are called
keycodes. A keycode indicates which key you pressed. The first digit
indicates which row on the keyboard the key is in. The second digit
indicates which column the key is in. A line contains one or more
keycodes which together represent a single operation. Labels and
number keys don't appear as keycodes, but instead as A through F or
0 through 9.
64 6: Programming
Columns
1 2 3 4 5 6
x2 Xw 10% X.y LOG SxSy % Xr %CHG Yr Z- mb
8909006:
+P +R HYP TT ASIN DEG ACOS RAD ATAN GRD PRGM RTN
2 [21] 3 en | cos) | TAN) [rss]
——
La ADE
2‘ @) С) (9) С) С)
› (61) (52) (5) (6) (*)
: (€) «в ESTE E
(2) (©) СЭ (2) в)
1 2 3 4 5
= 31 (>) (Er) = 61 14
A) (GT0o) C = 51 41 С [5то) [+)3 = 21 75 3
[+=] [НЕХ] = 51 52 2 = 2
6: Programming 65
Checksum. After you have entered a program you can check to see
if the keystrokes are entered correctly by comparing the checksum
listed in this manual to the checksum created by your program. The
checksum is a unique hexadecimal value assigned to the specific key-
strokes that you entered. To view the checksum, press and hold [+]
for a moment while you are in Program mode. The checksums
for the examples in this manual are valid if there is only one program
in memory. The checksum for the pipe area program on page 63 is
9Ad7.
Program Boundaries (LBL and RTN)
If you want to store more than one program in your
HP-205, then the program needs boundaries—a label to
mark its beginning and a return to mark its end.
Program Labels. Programs and segments of programs (called
routines) start with a label that acts as a name. Use a label to separate
programs any time you have more than one program in memory. The
keystrokes to create a label are [>] followed by A through F or 0
through 9. A label is used to execute a specific program or routine.
When you press label, the program pointer moves to the speci-
fied label and begins execution. (The program pointer is an internal
pointer that marks the line that is displayed while in Program mode.)
All of memory is searched for the specified label, starting at the pro-
gram pointer. If no label is found, the message Error - LbL is
displayed.
Return. Programs end with a return ((+](RTN)) instruction. When a
program finishes running, the RTN instruction returns the program
pointer to line 00. If the last line of the program is not a RTN instruc-
tion, the program pointer automatically returns to line 00. The
keystrokes are [+] [RTN]. Using (+) in subroutines is discussed
on page 76.
66 6: Programming
Entering Programs
Pressing [+] toggles the calculator into and out of Program
mode (PRGM annunciator on). While the HP-20S is in Program mode,
keystrokes that you enter are stored as program lines. The calculator
has enough memory for 99 program lines. Each function and each
digit of a number occupy one program line.
To enter a program into memory:
1. Press (+) to enter Program mode. The PRGM annunciator
appears in the display.
2. Press [+) (JL) to display line 00. This sets the program
pointer to line 00 without affecting other programs.
If you don't need any other programs that might be in memory,
clear program memory by pressing [+] [CLPRGM). This sets the
program pointer to line 00 since there are no other lines to
display.
3. To start entering the program, press [¢*] followed by the
label you wish to assign; A through F or 0 through 9.
4. To enter program instructions, press the same keys you would
use to do an operation manually.
5. End the program with a return instruction by pressing [7 [RTN).
6. Press [=] to exit Program mode.
Data Input. There are many ways to supply a program with data.
Here are two ways to supply data to a program that expects one data
item:
M Enter the number in the display before you run the program.
H Store the number into a register before you run the program, then
recall it from within the program.
Here are two ways to supply data to a program that expects two data
items:
mM Enter data in the display before you run the program by using
number, number,. The program can store number, then do a
E to access number.
mM Store both items in registers before you run the program, then re-
call them from within the program.
6: Programming 67
Example: This example clears the pipe area program and enters a
new version of the program that includes a label and a return instruc-
tion. (Refer to page 71 if you don't want to clear all of program
memory.) If you make a mistake during entry, press [€] to delete the
current program line, then reenter it correctly.
Keys: Display: Description:
(+) Enters Program mode
(PRGM annunciator
on).
Fuel 00- Clears program
memory.
(~] A 01- 61 41 A Labels this program
routine “А”.
(+3) [<] 02- 51 11 Enters the program
03- 55 lines.
Le) (+) 04- 61 22
(+] 05- 45
4 06- 4
(=) 07- 74
(e) 08- 61 26 Ends the program.
A) CF08 Checksum (page 66).
Exits Program mode
(A) (PREM] gr
(PRGM annunciator
off).
Positioning the Program Pointer
Program memory starts at line 00. The list of program lines is circular,
so you can wrap the program pointer from the bottom to the top.
There are several ways to move the program pointer to view different
lines:
Whether you are in Program mode or not:
HE (+) LG) to move to line 00.
E (a) [-] line-number to move to a specified line.
EH (+) [à] or (4)(Y] to move one line at a time.
® Hold [+] and press [A] or [Y] to move up or down.
When in Program mode:
E Hold (+) [4] or (4) (F] to move up or down rapidly.
When not in Program mode:
® (+ label to move to a specified label.
Running Programs
|
00906722
90C228
SCO
a IG:
129 000:
O SO
(> STO
=
There are two ways to run a program:
B Use [XEQ].
mM Use and (Run /Stop).
The PRGM annunciator blinks on and off, and the message running
appears in the display while the program is running.
Starting Programs With XEQ
To execute a program using [XEQ]:
H Enter data required by the program, if necessary.
M Press label.
M If you hold down /abe! after pressing [XEQ), the line where execu-
tion will begin is displayed. The program starts to run when /abe! is
released.
6: Programming 69
Example: Run the program labeled A to find the areas of three dif-
ferent pipes with diameters of 5, 2.5, and 2x. Remember to enter the
diameter before executing label A.
Keys: Display: Description:
5 A 19.6350 Enters the diameter,
then starts program A.
The resulting area is
displayed.
2.5 A 4.9087 Area of second pipe.
2 XP] 3.1416 Diameter of third pipe.
=] 6.2832 Area of third pipe.
A 31.0063
Starting Programs With GTO and R/S
To execute a program using and [R/S]:
mM Use to position the program pointer where you want to begin
(page 68).
M Enter data required by the program, if necessary.
M Press [R/S]. If you hold down [R/S], the line where execution will
begin is displayed. The program starts to run when is
released.
Stopping Programs
When a program is running, you can stop it by pressing or (CJ.
Programming a Stop. Pressing while in Program mode inserts
a STOP instruction. This halts a running program until you press
again. You can stop a program to enter data. You can use
rather than RTN to end a program. When the program halts, the pro-
gram pointer will not return to the top of the program.
70 6: Programming
Error Stops. If an error occurs while a program is running, program
execution halts at the point the error occurred, and an error message
is displayed. (There is a list of error messages and conditions on page
122.) Press [C] or [4] to clear the display. To see the program line con-
taining the error-causing instruction, press [=] [PRGM].
Clearing Programs
You must be in Program mode (the PRGM annunciator must be on) to
clear programs. Press [¢*] to clear all programs from
memory.
To clear a specific program you must delete each line individually.
Position the pointer at the last line of the program that you want to
delete and press [4] repeatedly. Refer to page 68 for more information
about how to position the pointer.
Editing Programs
You can modify a program by inserting and deleting program lines.
Even if a program line requires only a minor change, you must delete
the old line and insert a new one.
Deleting program lines:
1. Enter Program mode.
2. Position the pointer where you want to begin. (If you are delet-
ing more than one consecutive program line, start with the last
line in the group.)
3. Delete the line you want to change by pressing [€]. Succeeding
lines are automatically renumbered.
4. To exit Program mode, press [+] [PRGM].
For example, if you want to delete lines 05 through 08, you first dis-
play line 08, then press [+] four times. Subsequent program lines are
moved up and automatically renumbered.
6: Programming 71
Inserting program lines:
1. Enter Program mode.
2. Position the pointer to the line before where you want to add
lines.
3. Enter the new lines. They are inserted after the displayed line.
Succeeding lines are automatically renumbered.
4. To exit Program mode, press [+] (PREM).
For example, if you want to insert several new lines between lines 04
and 05 of a program, you first display line 04, then enter the instruc-
tions. Subsequent program lines, starting with the original line 05, are
moved down and renumbered accordingly.
Stepping Through Programs
You can test programs by stepping through them. The program exe-
cutes one line at a time as you step through it. The result is displayed
after each program line is executed, so you can verify the progress of
calculations. To execute a program one line at a time:
: Exit Program mode.
« Position the pointer where you want to begin.
« Enter data in the display, if necessary.
« Press (+), then press and hold (v). This displays the current
program line. When you release [Y], the line is executed. The
result of that execution is then displayed, and the program
pointer moves to the next line.
a WN -
9. Repeat step 4 until you find an error or reach the end of the
program.
To move to the preceding line, you can press [4] [A]. No execution
occurs.
Example: Step through the execution of the program labeled A. Use
a diameter of 5 for the test data. Check that the PRGM annunciator is
off before you start.
72 6: Programming
Keys:
1) [GTO] A
5
(9) (y) (hold)
(release)
a) (y) (hold)
(release)
[a (y) (hold)
(release)
(a) (Y) (hold)
(release)
La) (y) (hold)
(release)
La) (y) (hold)
(release)
(9) (Y) (hold)
(release)
1) (y) (hold)
(release)
Display:
5_
01-61 41 A
5.0000
02- 51 11
25.0000
03- 55
25.0000
04- 61 22
3.1416
05- 45
78.5398
06- 4
4_
07- 74
19.6350
08- 61 26
19.6350
Description:
Moves program pointer
to label A.
Enters 5 in the display.
Label A.
Squares input.
Multiplies 25 by ...
Calculates intermedi-
ate result.
‚ = 4.
End of program. Result
is correct.
Sample Program: Pythagorean Theorem
You can use most of the HP-20S features in Program mode just like
vou use them manually. To illustrate how and are used to
recall data from registers in a program, enter the following Pythago-
rean theorem program. It calculates the length of the hypotenuse (side
¢) of a right triangle, given the lengths of sides a and b. The formula
used is ¢ = \/a® + b%. Assume that the calculation begins with side
a in Ry and side b in R,.
6: Programming 73
Keys:
[A] (PREM)
[>] [CLPRGM]
[=] (LBL]E
[RCL] 1
9]
[RCL] 2
=) (=)
[=]
Le) LAT)
La) (sHow]
(A) LPREM]
Now store the a and b values of 22 and 9 into
program:
Keys:
22(sT10] 1
9 [810] 2
[(XEQJ E
74
6: Programming
Display:
01- 61 41 E
02- 22 1
03- 51 11
04- 75
05- 22 2
06- 51 11
07- 74
08- 11
09- 61 26
3902
Display:
22.0000
9.0000
23.7697
Description:
Enters Program mode.
Clears program mem-
ory. (Skip this step to
leave programs intact.)
Labels program “E”.
Recalls a from R;.
a”.
Recalls b from R>.
р?
a? + D.
Va? + b
Checksum (page 66).
Exits Program mode.
R, and R, then run the
Description:
Stores a in R,.
Stores b in R,.
Length of the
hypotenuse.
Sample Program: Random Number
Generator
The following program generates random numbers in the range
0 <r; < 1. The program uses a starting value between 0 and 1. For a
different sequence of random numbers, use a different starting value.*
Keys: Display: Description:
(+) Enters Program mode.
[> 00- Clears program mem-
ory. (Skip this step to
leave programs intact.)
[~] A 01- 61 41 A Names program ”А”.
0 02- 22 0 Get 7;
03- 55 Multiplies. ..
9 04- 9
9 05- 9
7 06- 7 ... by 997.
[=] 07- 74 Equals 997r;.
(>) 08- 61 45 rir; = FP (9977).
0 09-210 Saves 7; 1.
* The program uses the algorithm: 7, ; = FP (997r,), where r; is a starting value between 0
and 1 (for example, 0.5284163). The random number generator passes the chi-square fre-
quency tests for uniformity, and the serial and run tests for randomness. The most
significant digits are more random than the least significant digits.
If the starting value is between 0 and 1, and if the starting value x 107 is not divisible by 2
or 3, then the generator produces 500,000 different random numbers before repeating.
6: Programming 75
[>] 10- 61 26 Ends program.
[+] 7Ab8 Checksum (page 66).
hal Exits Program mode.
To store the starting value in Ro and run the program:
Keys: Display: Description:
.5284163 0.5284163_ Enters starting value in
display.
0 0.5284 Stores starting value in
Ro-
A 0.8311 Generates first random
number.
A 0.5579 Generates second ran-
dom number.
Continue pressing A to continue generating random numbers.
If you want to scale the random numbers to within the range
lower limit < R; < upper limit, add program lines to multiply the ran-
dom number by the difference between the limits, and add the
product to the lower limit. That is:
scaled R; = (upper limit — lower limit)r; + lower limit.
Subroutines
A program is composed of one or more routines. A routine is a func-
tional unit that accomplishes a specific task. As programs get more
complicated, it helps to break them into smaller pieces. This makes a
program easier to write, read, understand, and alter.
A routine typically starts with a label (LBL) and ends with an instruc-
tion that alters or stops program execution, such as RTN or GTO.
76 6: Programming
A subroutine is a routine that is called from (executed by) another
routine and returns control to that same routine when it finishes. The
subroutine must start with a LBL and end with a RTN. A subroutine
can call other subroutines.
If a subroutine is at the end of program memory and does not end
with []}[RTN], control is still transferred to the step after the originat-
ing when the routine completes. It is as if the subroutine had
ended with (>) (RTN).
Calling Subroutines (XEQ)
Use label to call a specific subroutine. The subroutine must start
with the label A through F or 0 through 9. Searching begins at the
and proceeds down the program, wrapping around through line
00 until the label is found. Within a program, label transfers exe-
cution of a running program to the program line containing that label,
wherever it may be. The program continues running from the new
location. Then, at the next (+) statement, execution returns to
the line after the originating and continues.
For example, to write a program that calculates the average slope be-
tween x; and x, on the graph, where y = x* — sin x, you would use
the formula:
(Xy — sin x,) — (xy — sin x)
slope =
Р Xx, — Xi
6: Programming 77
The solution requires two calculations of the expression x* — sin x
(for x = x, and for x = x;). Since the solution includes an expression
that must be repeated for both values of x, you can create a subrou-
tine to execute the repeated keystrokes and save space in program
memory. The program assumes that x, xX, has been entered be-
fore executing the program and that the calculator is in Radians mode
(le) (RAD).
Keys:
(A
[~~]
(] (LeL] C
[STO] 2
NEA
[570] 1
[RCL] 2
[(xEQ] 5
[RCL] 1
(XEQ] 5
78 6: Programming
Display:
00-
01- 61 41 С
02- 21 2
03- 51 31
04- 21 1
05- 71
06- 22 2
07-415
08- 65
09- 22 1
10- 41 5
11- 74
Description:
Enters Program mode.
Clears program
memory.
Names program “C”.
Stores the displayed
value (x,) in R,.
Swaps (x, for xj).
Stores displayed value
(x1) in Ri.
Clears display so there
is no hidden value or :
annunciator when pro-
gram is complete.
Recalls x,.
Executes subroutine to
calculate x,2 — sin x».
(x2° — Sin X») о,
Recalls xj.
Executes subroutine
again to calculate
x, — sin Xx.
(Xx? — sin X») —
(x;2 — sin x1).
[REL] 2
[RCL] 1
[=]
R/S
[e] (LaL] 5
[STO] O
LA) 2)
[=]
[RCL] 0
SIN
[>] [RTN]
9) (sHow)
[-1) [PREM]
12- 45
13- 33
14- 22 2
15- 65
16- 22 1
17- 74
18- 26
19- 61415
20-210
21- 33
22- 51 11
24- 22 0
26- 34
27- 61 26
7EE9
Divides result by...
Reorders precedence.
Recalls x,.
Xp — ...
Recalls xq. Closing pa-
renthesis not required
because = follows.
(x22 — sin x,) —
(x12 — sin x1))/
(x2 — x7).
Stops.
Label 5 starts the
subroutine.
Stores the displayed
value in Ro.
Reorders priority.
Squares the displayed
value,
Subtracts.
Recalls contents of Ro.
Calculates the sine.
Closing parenthesis re-
quired to evaluate x? —
sin X.
Ends subroutine and
returns to line follow-
ing originating (XEa).
Checksum (page 66).
Exits Program mode.
6: Programming 79
To execute the program using 3 and 4 as x; and x,, press
3 [INPUT] 4 | XEQ) C. The result is 7,8979. To exit Radians mode, press
[] [DEG].
Nested Subroutines. A subroutine can call another subroutine,
and that subroutine can call yet another subroutine. This “nesting” of
subroutines—the calling of a subroutine from within another subrou-
tine—is limited to four levels of subroutines. The operation of nested
subroutines is shown below:
MAIN PROGRAM
(Top level) (1st level) (2nd level} (3rd level) (4th level)
4
LBL A|| вов || [Let c [Leo] “|LeLE
XEQ B XEQ C XEQ D XEQ E
RTN | RTN | RTN | RTN {| RTN
END OF PROGRAM
If you attempt to execute a subroutine nested more than four levels
deep, the message Error - Sub appears in the display.
Branching and Conditionals
Branching (GTO)
— As we have seen with subroutines, it is often desirable to
‚653306 transfer execution to a part of the program other than the
im cooo!
next line. This is called branching.
Unconditional branching uses the GTO (go to) instruction to branch to
a program label. Use the keys: [+] label.
80 6: Programming
The (+) label instruction transfers the execution of a running
program to the program line containing that label, wherever it may
be. Searching starts at (+1) and continues throughout all of pro-
gram memory. The program continues running from the new location.
It does not automatically return to its point of origin when a (9) (RTN)
is encountered. Consequently, [=] is not used for subroutines.
Conditional Instructions—Decisions and Control
In addition to subroutines, another way to control pro-
gram execution is with a conditional test—a true/false test
that compares two numbers and skips the next program
Instruction if the comparison is false.
The HP-20S has two conditional statements: they are [+] and
(M) (==07]. x<<y? asks the question, “Is x less than or equal to y?” x=0?
asks the question, “Is x equal to 0?” If the answer is true, the program
continues execution with the line immediately following the question.
If the answer is false, the program skips one line and continues from
there.
For instance, if a conditional instruction is x=0?, then the program
compares the contents of the display to zero. If there is a zero in the
display, then the program goes on to the next line. If there is not a
zero in the display, then the program skips one line and continues
from there. This rule is commonly known as “Do if true.”
For x<y?, the program compares y (the displayed value) with x (the
hidden value). Use or any other operator (for example, [+] or
[+]) to separate x and y. If x is less than or equal to y, then the pro-
gram goes on to the next line. If x is not less than or equal to y (that is,
x is greater than y), then the program skips one line and continues
from there.
The following example illustrates conditional branching and a GTO
statement.
6: Programming 81
Example: Your accountant asks you to write a program that calcu-
lates the amount of tax a person is required to pay. You know that if
the income exceeds $30,000.00, then the tax rate is 38%. If the in-
come is less than or equal to $30,000.00, the tax rate is 28%. The
question is: is income < 30,000.00? Or to state it a different way: is
x<y?
Keys:
a)
[e)
[=] [LBL] A
(A) (eTo] 0
LA) (Swap)
3
82 6: Programming
Display:
00-
01- 61 41 A
02- 31
04- 0
05- 0
06- 0
09- 51410
10- 51 31
11- 55
12- 3
Description:
Enters Program mode.
Clears previous
programs.
Names program.
Enters display value
into x-position for con-
ditional test.
Enters first digit of
30,000.
Enters last digit of
30,000.
Conditional test: is
x < 30,000? Does next
line if true, otherwise
skips one line.
Goes to label 0 if
income < 30,000.
Exchanges 30,000 and
income.
Multiplies x-value.
Each digit uses one
program line.
8 13- 8 Enters tax rate.
a) 14- 51 14
(=) 15- 74 38% of x-value.
R/S 16- 26 Halts program.
rr) 0 17- 61 41 0 Starts routine for
income < 30,000.
(=) 18- 51 31 Exchanges 30,000 and
x-value.
19- 55 Multiplies x-value.
2 20- 2 Each digit uses one
program line.
8 21- 8 Enters tax rate.
EE 22- 51 14
[=] 23- 74 28% of x-value.
R/S 24- 26 Halts the program.
d6b6 Checksum (page 66).
pag
EY Exits Program mode.
lest the program by comparing samples done manually. For example,
15000 [x] 28 [#3] [*] [=] 4,200.0000. Test a few more incomes manually,
then run the program and compare them. To run the program, enter
the income value in the display and press A.
The : that appears in the display after the program is complete is
caused by the that separates income from 30,000 for the condi-
tional test in line 08. The program can be rewritten so that [x] is used
to separate income from 30,000 for the conditional test. Also, to save
program lines, the common keystrokes can be grouped together. The
following program uses conditional branching and unconditional
branching for the common keystrokes.
6: Programming 83
Keys:
(=) (FRGM]
(A) (CLPRGM)
(A) (D) A
3
0
0
0
0
e) ES]
H) Er) 1
3
8
(5) [6то) 2
(=) (C60) 1
2
84 6: Programming
Display:
00-
01- 61 41 A
02- 55
03- 3
04- 0
05- 0
06- 0
07- 0
08- 61 42
09- 51 41 1
10- 3
11- 8
12- 51 41 2
13- 61 41 1
14- 2
Description:
Enters Program mode.
Clears any existing
programs.
Names program À.
Puts display value into
x-position for condi-
tional. It will be used
later to multiply by the
tax rate.
One digit per line.
y-value is 30,000.
If yes, goes to next
line; if no, skips one
line.
Goes to label 1 if
income < 30,000.
Replaces 30,000 by the
tax rate.
Goes to label 2 for
common steps.
Starts routine 1 for
x < 30,000.
One digit per line.
8
Le] [LBL] 2
+3) [8]
[=]
R/S
(m) [SHOW]
LA) (PREM)
15- 8
16- 61 41 2
17- 51 14
18- 74
19- 26
CbCA
Starts routine 2 with
common lines.
Calculates 38% or 28%
. of income.
End of program.
Checksum (page 66).
Exits Program mode.
Test this program the same way you tested the previous program on
page 83. Press [C] to remove the : from the previous example.
Keystrokes for Other Conditionals
The HP-205 provides two of many possible conditionals using x, y,
and zero. The following table shows examples of the keystrokes that
you can use to create some other conditionals in a program:
Conditional
Program Steps
Explanation
n=0?, n*0? n nis x.
(>) Is n=0?
(71) [GTO] 1 Yes. Go to LBL 1.
(Lines for n+0) No. Continue here.
Le]
(Lines for n=0)
n=0?, n<0 0 is x.
n n is y.
rad Is O<n? (is n>0?).
[+] (eTO] 1 Yes. Go to LBL 1.
(Lines for n<0) No. Continue here.
Le] 1
(Lines for n=0)
6: Programming 85
Conditional Program Steps Explanation
n<0?, n>0? n nis x.
0 0 is y.
LE] ls n<0?
[a] 1 Yes. Go to LBL 1.
(Lines for n>0) No. Continue here.
Le) 1
(Lines for n<0)
ny=ns?, ny Eno? M
a
El
[ee] Is n4—n2=0? (is
A = По?)
(+) 1 Yes. Go to LBL 1.
(Lines for n,*n>) No. Continue here.
[>] 1
(Lines for n,=n>)
ny=ns?, ny<ny? no no is X.
ny ny is y
Le] ls n2<N4? (is N4>n2?)
[A] 1 Yes. Go to LBL 1.
(Lines for n,<n») No. Continue here.
[e) 1
(Lines for ny;=n,)
ny <n,?, n4>nNa ny nq IS X.
no | No IS y.
ir) | x<y? | Is na <no?
[q (GTO) 1 Yes. Go to LBL 1.
(Lines for ny>n,) No. Continue here.
Le)
(Lines for ny<ny)
6: Programming
Available Program Memory
Program memory can have up to 99 lines. If you attempt to add pro-
gram lines (anywhere in program memory) after 99 lines have been
entered, the message Error - FuLL is displayed.
Nonprogrammable Functions
The following HP-20S functions are not programmable:
[+] Le] [CLPREM]
(=) [v] (A) (SHOW)
(A) (A) (+) (LOAD}
(+n) [GTO] [] line-number [A] (PRGM]
1) LeTO) LJLJ [=] [OFF]
6: Programming 87
Built-in Program Library
i
a.....
[DOOCCT)
mocce
NICE:
ooo
ID ос)
—-— J
Your HP-205 has six built-in programs that can be copied
into program memory using [$3] [LOAD]. To load a pro-
gram, press [1] (PRGM], then (5) followed by A
through F. An abbreviation of the program name is dis-
played for a moment, then the program pointer is set to
line 00. The built-in programs are:
Program Title Message
Name
A Root Finder root
B Numerical Integration int
C Complex Operations CPL
D 3 x 3 Matrix Operations | 3 bY 3
E Quadratic Equation qUAd
F Curve Fitting Fit
The built-in programs are designed to save keystrokes when entering
a program. These programs can be edited and run just like programs
that you entered yourself. When a new program is loaded, it clears
any other programs that may be in memory. This chapter gives in-
structions and an example for each program in the library.
88 7: Built-in Program Library
Root Finder (root)
This program finds a solution for fix) = 0 using the secant method,
which is derived from Newton's method with a numerical approxima-
tion for the derivative f(x). You must define the function f(x) by
entering the program lines to calculate f(x), assuming x is in the dis-
play. You must also supply an initial guess, x, for the solution. The
closer the initial guess is to the actual solution, the faster the program
converges to an answer.
The main program is 62 lines long, and uses registers Rs through Rg
and labels A, F, 8, and 9. The remaining program lines, registers, and
labels can be used for defining f(x). You can replace the default values
of Ax limit (relative error), € (f(x) tolerance), and count (number of it-
erations) with different values depending on the desired accuracy and
solution speed. Refer to the equations on page 91 to see how these
values are used.
Program Instructions:
1. Press [4] [PRGM), then [=] A to load the program. Then
press [+] [A] once to move to the last line of the program.
2. After the LBL F on line 62 (62- 61 41 F), enter the keystrokes to
calculate the value of f(x) using a value of x in the display. See
the example below.
3. Press (—] [PRGM).
4. To calculate a root, enter your initial guess (xp) and press A.
5. To enter a new function, repeat the instructions starting at
step 1.
6. Optional: To change e, change the default value of 10° at lines
51 through 53.
7. Optional: To change Ax limit, change the default value of 10-10
at lines 39 through 42.
8. Optional: To change count, change the default value of 100 at
lines 09 through 10.
7: Built-in Program Library 89
Example: Find the root of f(x) = x°— x — 1 = 0 using an initial
guess of x, = 2.
Keys:
(A) (PREM) (A)
[LOAD] A
(=) [4]
[570] 0
La) [SHOW]
(a) [PREM]
2 [XEGJA
Remarks:
Display:
root
00-
62- 61 41 F
63-21 0
64- 14
65- 6
66- 65
67- 22 0
68- 65
70- 74
46b5
1.1347
Description:
Loads program.
Displays label for be-
ginning of f(x) routine.
Starts f(x) routine;
saves X.
x.
X.
x6 — x
x — x 1.
Checksum (page 66).
Exits Program mode.
Enters x; and calcu-
lates root.
After the program has finished, the value of x such that f(x) = 0 is
displayed and stored in Rg. To calculate the corresponding value of
f(x), press F with x in the display.
Error - Func is displayed if the equation for finding x;,; divides by
zero or causes some other improper math operation. Try a new guess
that is closer to the root. If e or Ax limit needs to be increased, refer to
program instruction steps 6 and 7.
90 7: Built-in Program Library
Error - LbL is displayed if the iteration count is exceeded. This means
that for the initial guess provided, the program cannot converge on a
root within count iterations. Try a new guess that is closer to the root,
examine the function to see if it has no real roots, or increase the
iteration count, с, ог Ах limit. (Refer to program instruction steps 6
through 8.)
If an error occurs, check the root approximation (in Ry) to see if it is
close enough.
If the function being solved has multiple roots, you can use this pro-
gram to find each root by selecting different initial guesses that are
close to each of the different roots.
The value of f(x) for any x can be calculated by entering the value for
x and pressing F.
If there is a pending expression when the initial guess (xy) is entered,
it is ignored.
The program uses the equations:
Newton's Method: Xp =x — fx)
Pa
Derivative Approximation: Pa = fa; + 8) — fa)
5.
1
where ö; = X;_ 1 — Xi, 60 = 10x, if x; # 0 and 6, = 107 if x; = 0.
o Xi X 2
Convergence Criteria: внося | < Ax limitor | x;. , — x; | =0,
Xi
and |x;| # O0 and |f(x,)| < €, within count
iterations
Numerical Integration (int)
This program calculates an approximate integral for f(x) using
Simpson's rule. You must define the function f(x) by entering the pro-
gram lines that are required to calculate f(x), assuming x is in the
display. You must also supply the number of intervals, n, for the inte-
gral. The larger the number of intervals, the more accurate the answer
is, but the more slowly the program will calculate an answer.
7: Built-in Program Library 91
The main program is 58 lines long and uses registers Rg through Ro
and labels À, F, 7, 8, and 9. The remaining program lines, registers,
and labels can be used for defining f(x).
Program Instructions:
1.
7.
Press [+1] [PRGM), then [=] B to load the program. Then
press (+) [4] once to move to the last line of the program.
After the LBL F on line 58 (58- 61 41 F), enter the keystrokes to
calculate the value of f(x) using a value of x in the display. See
the example below.
Press [9] (PRGM].
Enter the lower limit of integration (xp) and press 5 to save
it in Rs.
Enter the upper limit of integration (x,) and press 6 to save
it in Rg.
To calculate the integral, enter the number of integration inter-
vals and press (A). This number must be an even, positive
integer.
To enter a new function, repeat the instructions starting at
step 1.
Example: Calculate the integral of fx) = x® — x — 1 from x; = 0 to
x, = 3 using 8 integration intervals.
Keys: Display: Description:
a) [+ Loads program.
B int
00-
(A) (A) 58- 61 41 F Displays label for be-
ginning of f(x) routine.
0 59- 21 0 Starts f(x) routine;
saves x.
(¥*] 60- 14
6 61- 6
=] 62- 65 x.
92 7: Built-in Program Library
0 63- 22 0 x.
=] 64- 65 x6 — x.
1 65- 1
(=) 66- 74 x — x 1.
[A] b62E Checksum (page 66).
(A) Exits Program mode.
0 5 0.0000 Saves x; (lower limit).
3 6 3.0000 Saves x, (upper limit).
8 A 305.2806 Enters number of inte-
gration intervals and
calculates integral.
Remarks:
The Simpson's rule integral can only be calculated if the number of
integration intervals is an even, positive integer. The message Error -
Func appears immediately after starting the program if an odd, nega-
tive, or noninteger number of integration intervals is used.
After calculating the integral, the lower and upper limits of integra-
tion (x, and x,) are still in Rg and Rg. The integral can be calculated
with a different number of integration intervals by entering the new
number of intervals and pressing A, without reentering the inte-
gration limits.
The function f(x) for any x can be calculated by entering the value for
x and pressing F.
This program uses the following equations:
Simpson's Rule: I f(x) dx = ft) + 4f(x,) + 2f(x,) +...
+ 4f(X, _3) + 2f(x,_,) + 4fx,_ 1)
+ fa]
x, — X ее
—" €, and n is an even, positive integer.
H
where h =
7: Built-in Program Library 93
Complex Operations (CPL)
This program permits chained calculations involving complex num-
bers in rectangular form. Five complex operators are provided (add,
subtract, multiply, divide, and power), as well as two commonly used
functions (reciprocal and magnitude). Functions and operators may be
mixed in the course of a calculation to allow evaluation of certain ex-
pressions such as z,/(z; + 23) and (z; + z;)/z3, where z,, z,, and z3
are complex numbers in rectangular form z = a + bi.
This program uses Ro through R,.
Program Instructions:
1. Press [-<][PRGM) to enter Program mode, (9) [LOAD] C to load the
program, and [+] to exit Program mode.
2. Enter the keystrokes for the desired complex operation. The
Imaginary part of the result is displayed. For each operation ex-
cept magnitude, press (+) to see the real part.
Operation Keystrokes
Addition a; [INPUT] by (XEQ] A a, b»
(a, +64!) + а» bof)
Subtraction a; [INPUT] by [XEQ] B a, bo
(aj +54!) —(аэ + Бо!)
Multiplication a; [INPUT] by [XEQ] C a, by
(a, +D47) x (a, + Doi)
Division a b; D a, by
(a, +b1í) (as + boi)
Reciprocal ai INPUT] by [XEQ] E
1+(a+bi)
Integer power à, [INPUT] b, [XEQ] F n
(a + bi)”
Magnitude a [INPUT] b [XEQ] 9
Va? +b?
94 7: Built-in Program Library
Example 1: Calculate (2 + 31) — (6 + 41):
Keys: Display:
a] [a] CPL
С 00-
a)
2 3 3_
B 3.0000
6 4 4_
R/S — 1.0000
a) —4.0000
Description:
Loads program.
Exits Program mode.
Enters first complex
number.
Complex subtract.
Enters second complex
number.
Calculates difference.
Displays imaginary
part.
Displays real part.
Using the result of the previous example, calculate ((2 + 31) —
(6 + 4i))/(1 — i):
(A) — 1.0000
D — 1.0000
1 1 —1-
R/S —2.5000
(A) — 1.5000
Restores original order
of result.
Complex divide. It is
not necessary to re-
enter the result of the
previous calculation.
Enters divisor.
Calculates quotient.
Displays imaginary
part.
Displays real part.
7: Built-in Program Library 95
Example 2: Calculate the magnitude of (3 + 6j)2.
Keys: Display: Description:
3 [INPUT] 6 | XEQ] F 6.0000 Enters complex
number.
2 36.0000 Enters power and cal-
culates. Displays
imaginary part.
9 45.0000 Calculates magnitude.
Example 3: Evaluate the expression: я
2) + 23
Where 27 = 23 + 131, 2, = —2 + 1, and га = 4 — 3i. Since the
program does not allow for parentheses, perform the calculation as
21 X [1 / (22 + 23)].
Keys: Display: Description:
2 [*/J[ONPUT]1[XEQ] A 1.0000 Enters z;, complex add.
4 3 —2.0000 Enters 23; calculates
27 + 23.
E 0.2500 Calculates 1/(2, + 23).
C 0.2500 Complex multiply.
23 [INPUT] 13 [R/S] 9.0000 Displays imaginary
part of z,/(Z5 + 23).
(A) 2.5000 Displays real part of
21/(22 + 23).
Remarks:
The complex power can only be calculated for an integer exponent.
The message Error - Func appears if a noninteger exponent is used.
The same error message will appear if the magnitude of the complex
number in the denominator is zero when dividing or taking the
reciprocal.
If there is a pending expression when complex numbers are entered, it
is evaluated before the numbers are used for complex operations.
96 7: Built-in Program Library
This program uses the following equations:
Addition: Zi + 2, = (a, + 4,) + (6, + bi
Subtraction: 2, — 2, = (a; — ay) + (by — by)i
Multiplication: 2,2, = T,1,e'(0 +9)
Division: Z/ 2 = IL gi, = 9,
"2
Power: г" = 7,0"
a b .
Reciprocal: 1/z = ZT 7!
Magnitude: || = Va’ + №?
3 x 3 Matrix Operations (3 bY 3)
This program uses Cramer's rule (the method of determinants) to
solve systems of linear equations with three unknowns:
A,1X, + appx, + ax; = by
AX; + AX, + AX; =D,
AX, + d3X, + 433%; = В,
The program also calculates the determinant of the system and can be
used to calculate each element of the inverse.
The program uses Ro through Ro.
7: Built-in Program Library 97
Program Instructions:
1.
2,
Press [+] to enter Program mode, (+) D to load the
program, and [4] to exit Program mode.
Use the diagram as a typing aid to store the coefficients of the
equations in Ri through Ro.
R7 Ra Rg
a 442 A439
RA Rs Re
a, A3» dog
ay: dso аз3
To solve the system of equations, enter b; and press 0. En-
ter b, and press [INPUT], then enter b; and press A. X is
displayed. Press to see x,, then press to see x5. The :
annunciator appears in the display when x,, x,, or x3 is dis-
played. It should be ignored—it does not imply that there is a
second result available.
To calculate the determinant, press D. You can do this
anytime after step 2.
To calculate the first column of the inverse, calculate the system
solution using the first column of the identity matrix
(1 0,0 0, A). ai," is displayed. Press to
see 471, then to see 477”.
To calculate the second column of the inverse, calculate the sys-
tem solution using the second column of the identity matrix
(0 0, 1 0, A). ay" is displayed. Press to
see 4,7, then to see 437.
7: Built-in Program Library
To calculate the third column of the inverse, calculate the system
solution using the third column of the identity matrix
(0 0, O [INPUT ]1, (XEQ] A). a;3” is displayed. Press to see
4,3, then to see 433’.
Example 1: Find the solution to the following set of equations:
19x, — 4x, + 4x, = 5
5x, — 12x, — 10x, = —3
—15x, + 8x, + 3x; = 4
Keys: Display: Description:
[PREM a)(LOAD)D 3 bY 3 Loads program.
00-
E Exits Program mode.
19 7 19.0000 Stores 411.
4 8 —4.0000 Stores 412.
4 9 4.0000 Stores 413.
5 4 5.0000 Stores 421.
12 5 —12.0000 Stores 43».
10 6 — 10.0000 Stores 423.
15 1 — 15.0000 Stores 431.
8 2 8.0000 Stores 43.
3 3 3.0000 Stores 433.
5 0 5.0000 Stores by.
3 — 3.0000 Enters b>.
4 A — 1.6667 Enters by and calculates
xq.
7: Built-in Program Library 99
R/S
R/S
—4.4091
4.7576
Calculates x,.
Calculates хз.
Example 2: Find the determinant and inverse of the matrix stored in
example 1.
Keys:
(xEQ] D
1 (STO) O
0 (INPUT)
0 (XEQ] A
R/S
R/S
0 [s10] 0
1 [INPUT]
0 [xEQ] A
R/S
R/S
0(s10]0
0 [INPUT]
1 [xEQ] A
R/S
R/S
100 7: Built-in Program Library
Display:
— 264.0000
1.0000
0.0000
— 0.1667
— 0.5114
0.5303
0.0000
1.0000
— 0.1667
— 0.4432
0.3485
0.0000
0.0000
— 0.3333
— 0.7955
0.7879
Description:
Calculates det A.
Stores 111.
Enters 1-1.
Enters 13; and calcu-
lates й11.
Calculates a,,".
Calculates a5’.
Stores 117.
Enters 75.
Enters 13, and calcu-
lates a17'.
Calculates 955”.
Calculates дз)”.
Stores 113.
Enters 123.
Enters 133 and calcu-
lates a;3".
Calculates a5’.
Calculates a33 .
Remarks:
If the determinant equals zero, the system of equations is linearly de-
pendent, and this program cannot be used to find a solution. The
message Error - Func will appear if you attempt to solve for x, x5, or
ХЗ.
To solve two equations in two unknowns, the last column and row of
A should be set to 0 0 1, and the last element of B should be set to 0.
The resulting system of three equations and three unknowns can be
solved as indicated in the program instructions.
When calculating the system solution, no operations are allowed
while the x-values are displayed. If you do any operation other than
[R/S], you must reenter b, and b; and restart the system solution ac-
cording to step 3 of the program instructions (b, ba A).
If there is a pending expression for b; when starting the system solu-
tion ([XEQ] A), it is evaluated before the solution is calculated. If there
is a pending expression when calculating the determinant, the de-
terminant will be calculated incorrectly.
This program uses the following equations:
System of Equations: АХ = В
Ay A) Ay; X1 by
where A = [ 4,9, 4,5 A3} X = |x,|, B = |b,
931 Az) Az; x3 bs
Determinant: det A = a,,mn, — a,,mn, + a,,mn,
where mn; are the minors mn, = à,9033 — A32433,
Mi, = 3,813 — 417433, MH = 0,2013 — 412423
det, _ det, _ det,
, X, a 7 X3 —
det A det A det A
System Solution: x; =
where det; is the determinant of A with its ith column
replaced by B, and det A + 0.
7: Built-in Program Library 101
an’ Ay Ay 1 0 0
Inverse and Identity: Al = lay ay ay |, I = 10 1 0
a3" 032 933 0 0 1
where the ith column of the inverse is calculated by solving the sys-
tem of equations with B replaced by the ith column of I.
Quadratic Equation (qUAd)
This program uses the quadratic formula to solve for the real and
complex roots of a second-degree polynomial in the form ax? + bx +
¢ = 0. If two real roots exist, the program first calculates the root with
the larger absolute value, then the root with the smaller absolute
value. If only complex roots exist (when b? — 4ac < 0), the program
calculates both the real and imaginary parts of the roots.
The program uses Ro through Rs.
Program Instructions:
1. Press (4) to enter Program mode, (+) E to load the
program, and [+] to exit Program mode.
Enter 4 and press A.
Enter b and press B.
Enter c and press C.
To calculate the roots, press D.
M If the : annunciator does not come on, the displayed number
is the first real root. Press to see the second real root.
M If the : annunciator comes on, the displayed number is the
value of the imaginary part of the complex root. Press
E to see the real part of the complex root. The second
complex root is the same as the first except for the sign of the
imaginary part.
u > ON
102 7: Built-in Program Library
Example 1: A ball is thrown straight up at an initial velocity of 20
meters per second from a height of 2 meters. Ignoring air resistance,
when will it reach the ground? The acceleration due to gravity is ap-
proximately 9.81 meters per second?.
According to Newtonian mechanics, this problem may be expressed
as the second degree polynomial f(t) = —1/,(9.81)? + 20t + 2,
where t is time in seconds. When the ball hits the ground, f(t) = 0.
Keys:
[=n] (PRGM] [5] [LOAD]
E
(A) (PREM]
9.81 [2] 2 FQ)
(XEa] A
20 (XEG] B
2 [xEa] C
[ХЕ@) О
R/S
Display:
qUAd
00-
—2_
—4.9050
20.0000
2.0000
4.1751
— 0.0977
Description:
Loads program.
Exits Program mode.
Enters a.
Enters b.
Enters c.
Calculates ¢.
Calculates t».
Since a negative time has no meaning in the context of this problem,
the first result, 4.1751 seconds, is the meaningful answer.
Example 2: Find the roots of 3x2 + 5x + 3 = 0.
Keys:
3 [XEQ] A
5 (XEQ] B
3 [XEQ] C
Display:
3.0000
5.0000
3.0000
Description:
Enters a.
Enters b.
Enters c.
7: Built-in Program Library 103
D 0.5528 Calculates x;. The : an-
nunciator indicates
that this is the
positive-valued imagi-
nary part of the
complex root.
a) —0.8333 Displays real part of
complex root.
Remarks:
This program can be used in conjunction with the root finder program
to solve cubic equations. Since a cubic equation always has at least
one real root, the root finder program could be used to find the root.
Then synthetic division could reduce the cubic equation to a qua-
dratic equation, which could then be solved by this program.
The message Error - Func appears if the coefficient of the quadratic
term (a) 1s zero.
If there is a pending expression when the coefficients a, b, and c are
entered, it is evaluated before the coefficients are saved.
This program uses the following equations:
—b + Vb” — 4ac
Quadratic Formula: X = ;
a
— 2 — доле
Real Roots: If —b > 0, x= b +Vb 4ac
2a
Ch АД
If —b < 0, x;= — Vb? — 4ac
24
X = €
? ax,
Real Part of Complex Root: ‚ = =
Imaginary Part of Complex Root: i =
104 7: Built-in Program Library
Curve Fitting (Fit)
This program fits x,y-data to one of three curve-fitting models: power,
exponential, or logarithmic. The program calculates the correlation co-
efficient r and the two regression coefficients m and b. It includes
routines to calculate x given a known y and y given a known x.
The program uses R, through Rg.
Power Curve: y = bx m
~~ Exponential Curve: y = be *
mem TS Logarithmic Curve: y =min x +b
General Linear Equation: y=mx+b
The program uses a transformation of the curve fit equations into a
general linear form. The (x,y) data pairs are transformed to this linear
form as they are entered into the statistical registers. This allows the
program to use the built-in statistical functions described in chapter 5
to calculate the statistical variables.
Curve Fitting Models and Transformations
Model Equation Transformed Transformed
Equation Data
Logarithmic | y = minx +b |y =minx + b In x, y (x>0)
Exponential | y = be™ ny = mx + Inb x, In y (y>0)
Power y = bx" ny = min x + In b | In x, In y
(x>0,y>0)
7: Built-in Program Library 105
Program Instructions:
Press [+] to enter Program mode, [+] (LOAD] F to load the
program, and [+] to exit Program mode.
Clear the statistical registers by pressing [>] [CLT].
Select the desired curve fit by pressing A (power), B
(exponential), or C (logarithmic).
Enter each x,y data pair (x [INPUT] y) and press [R/S]. The total
number of data pairs is displayed. (If you get an error, reselect
the curve fit.)
Optional: To delete an x,y data pair, enter x y, then press
9. The total number of data pairs is displayed. (If you get
an error, reselect the curve fit.)
6. To calculate X and r, enter the y-value and press D. Ÿ is
displayed. Press (+) to see r.
7. To calculate ÿ and r, enter the x-value and press E. ÿ is
displayed. Press [+] to see r.
8. To calculate m and b, press F. m is displayed. Press
(7) [SWAP] to see b.
Example: Use the data below to calculate m, b, and r for a power
curve. Estimate y for an x-value of 37 and x for a y-value of 101.
X 40.5 38.6 37.9 36.2 35.1 34.6
Y 104.5 102 100 97.5 95.5 94
Keys: Display: Description:
[A] [A] Fit Loads program.
F 00-
[+] Exits Program mode.
[>] 0.0000 Clears statistical
registers.
A 0.0000 Selects power curve fit.
40.5 40.5000 Enters x,.
106 7: Built-in Program Library
104.5
38.6
102 (R/S)
37.9
100 [8/5
36.2
97.5
35.1
95.5
34.6
94 [R/S]
[(XEQ] F
(A) (Swap)
37 [XEG] Е
(A) (Swap)
101 [xE@] D
1) (Swap
1.0000
38.6000
2.0000
37.9000
3.0000
36.2000
4.0000
35.1000
5.0000
34.6000
6.0000
0.6640
8.9730
98.6845
0.9959
38.3151
0.9959
Enters y;.
Enters x,.
Enters y,.
Enters x;.
Enters y;.
Enters x4.
Enters yy.
Enters xs.
Enters ye.
Enters xg.
Enters vq.
Calculates m.
Displays b.
Calculates 7.
Displays r.
Calculates %.
Displays r.
If you want to repeat this example for exponential and logarithmic
curves, the table below lists the starting key sequence and results for
m, b, r, §, and X. After performing the starting key sequence, you
must reenter the data before calculating the results.
7: Built-in Program Library
107
Item Exponential Logarithmic
To start: [>] [6:3 [ХЕа) В [с*) [655 ) [хЕ@) ©
m 0.0177 65.8446
b 51.1312 — 139.0088
r 0.9945 0.9965
7 (x = 37) 98.5870 98.7508
X(y = 101) 38.3628 38.2857
Remarks:
The message Error - Func is displayed if x; < 0 for logarithmic curves,
if y; < 0 for exponential curves, or if either x; or y; < O for power
curves. If you get an error (Error - Func), reselect the curve fit type by
pressing A, B, or C. Using valid data, repeat the operation that
caused the error.
Data values of large magnitude but relatively small differences can
cause problems in the precision of the calculated results, as can data
values of greatly different magnitudes.
If there is a pending expression when the data pairs are input, it is
evaluated before the data pairs are used for regression calculations.
108 7: Built-in Program Library
Assistance, Batteries, Memory,
and Service
Obtaining Help in Operating the Calculator
We at Hewlett-Packard are committed to providing you with ongoing
support. You can obtain answers to questions about using the calcu-
lator from our Calculator Support department.
Please read “Answers to Common Questions” before contacting us.
Our experience has shown that many of our customers have similar
questions about our products. If you don't find an answer to your
question, you can contact us using the address or phone number
listed on the inside back cover.
Answers to Common Questions
Q. I'm not sure if the calculator is malfunctioning or if I'm doing
something incorrectly. How can I determine if the calculator is operat-
ing properly?
A. Refer to page 116, which describes the diagnostic self-test.
Q. My numbers contain commas instead of periods as decimal points.
How do I restore the periods?
A. Press [9] (page 19).
@. How do I change the number of decimal places the HP-20S
displays?
A. The procedure is described in “Display Format of Numbers” on
page 16.
Assistance, Batteries, Memory and Service 109
Q. How do I clear all or portions of memory?
A. See page 12 to clear portions of memory. To clear all memory,
press and hold down [C], then press and hold down both and
(2+]. When you release them, all memory is cleared.
Q. What does an “E” in a number (for example, 2.51E—13) mean?
A. Exponent of ten (for example, 2.51 x 10713). Refer to “Scientific
and Engineering Notation” on page 18.
Q. Why does calculating the sine of = radians display a very small
number instead of zero?
A. The calculator is not malfunctioning. = cannot be expressed exactly
with the 12-digit precision of the calculator.
Q. Why do I get incorrect answers when | use the trigonometric
functions?
A. You must make sure you are in the correct trigonometric mode
(page 34).
Q. What does PEND in the display mean?
A. An arithmetic operation is pending (in progress).
Q. What does : in the display mean?
A. The key has been pressed, or two values have been re-
turned (page 14).
110 Assistance, Batteries, Memory and Service
Power and Batteries
The HP-20S is powered by 3 button-cell batteries. Expected battery life
depends on how the calculator 1s used and the chemical content of the
batteries.
Use only fresh button-cell batteries. Do not use rechargeable batteries.
Low Power Annunciator (£3)
When the low battery annunciator (EJ) comes on, you should re-
place the batteries as soon as possible.
If you continue to use the calculator after the battery annunciator
comes on, power can eventually drop to a level at which the display
becomes dim, and stored data may be affected. If this happens, the
calculator requires fresh batteries before it will operate properly. If
stored data has not been preserved due to extremely low power, the
HP-205 displays ALL CLr.
Installing Batteries
Once the batteries are out, you must replace the batteries within
one minute to prevent loss of Continuous Memory.
Battery Specifications
Your HP calculator requires three 1.5-volt, button-cell batteries. We
recommend using either alkaline or silver-oxide type batteries. Use
batteries from the following list, or use another manufacturer 's equivalent.
Alkaline Silver Oxide
Panasonic LR44 Panasonic SR44W or SP357
Eveready A76 Eveready 357
Duracell LR44 RAY-O-VAC 357
Varta VI3GA Varta V357
Kodak KA76 Toshiba LR44
Assistance, Batteries, Memory and Service 111
To install batteries:
1. Have three fresh button-cell batteries at hand. Hold batteries by the
edges. Do not touch the contacts. Wipe each battery with a clean,
lint-free cloth to remove dirt and oil.
2. Make sure the calculator is off. Do not press [C) again until the
entire procedure for changing batteries is completed. Chang-
ing batteries with the calculator on can erase the contents of
Continuous Memory.
3. Hold the calculator as shown. To remove the battery-
compartment door, press down and outward on it until it slides
off (away from the center).
4. Turn the calculator over and shake the batteries out.
A . . o
Ku Do not mutilate, puncture, or dispose of batteries in
fire. The batteries can burst or explode, releasing
Warning hazardous chemicals.
9. Hold the calculator as shown and stack the batteries, one at a
time, in the battery compartment. Orient the batteries according
to the diagram inside the battery compartment. Be sure the
raised and flat ends match the diagram.
112 Assistance, Batteries, Memory and Service
6. Slide the tab of the battery-compartment door into the slot in the
calculator case.
Now turn the calculator back on. If it does not function, check that
the orientation of the batteries is correct. If the calculator still does not
function, you might have taken too long to change the batteries or
inadvertently turned the calculator on while the batteries were out.
Remove the batteries again and lightly press a coin against both battery
contacts in the calculator for a few seconds. Put the batteries back in
and turn the calculator on. It should display ALL CLr.
Resetting the Calculator
If the calculator doesn't respond to keystrokes or if it is otherwise be-
having unusually, you should attempt to reset it. Resetting the
calculator halts the current calculation and clears the display. Stored
data remains intact.
To reset the calculator, hold down the key and press at the
same time. It may be necessary to repeat the reset keystrokes several
times. If you are unable to reset the calculator, try installing fresh bat-
teries. If the calculator still fails to operate properly, you should
attempt to clear all of memory using the procedure described in the
next section.
Assistance, Batteries, Memory, and Service 113
Erasing Continuous Memory
If the calculator fails to respond to keystrokes and you are unable to
restore operation by following the reset instructions, clearing memory
may restore calculator operation. Press and hold down (€), then press
and hold down both and (2+]. When you release them, all mem-
ory is cleared. The ALL CLr message is displayed.
Memory can inadvertently be cleared if the calculator is dropped or if
power is otherwise interrupted.
Environmental Limits
To maintain product reliability, you should avoid getting the calcu-
lator wet and observe the following temperature and humidity limits:
H Operating temperature: 0° to 45°C (32° to 113°F).
H Storage temperature: —20° to 65°C (—4° to 149°F).
® Operating and storage humidity: 90% relative humidity at 40°C
(104°F) maximum.
Determining if the Calculator Requires
Service
Use these guidelines to determine if the calculator requires service. If
these procedures confirm that the calculator is not functioning prop-
erly, read the section “If the Calculator Requires Service” on page 118.
114 Assistance, Batteries, Memory, and Service
M If the calculator won't turn on (nothing is visible in the display):
1. Attempt to reset the calculator (page 113).
2. Attempt to erase Continuous Memory (page 114).
3. If the calculator fails to respond after step 1 or 2, replace the
batteries (page 111).
4. If the calculator fails to respond after step 3, remove the bat-
teries (page 111) and lightly press a coin against both
calculator battery contacts. Put the batteries back in and turn
on the calculator. It should display ALL CLr.
If steps 1 through 4 fail to restore calculator operation, it re-
quires service.
Ш If the calculator doesn't respond to keystrokes (nothing hap-
pens when you press any of the keys):
1. Attempt to reset the calculator (page 113).
2. If the calculator fails to respond after step 1, attempt to erase
Continuous Memory (page 114). This will erase all the in-
formation you've stored.
3. If the calculator fails to respond after steps 1 and 2, remove
the batteries (page 111) and lightly press a coin against both
calculator battery contacts. Put the batteries back in and turn
on the calculator. It should display ALL CLr.
If steps 1 through 3 fail to restore calculator function, the cal-
culator requires service.
EM If the calculator responds to keystrokes but you suspect that it
is malfunctioning:
1. Do the self-test (described below). If the calculator fails the
self test, it requires service.
2. If the calculator passes the self-test, it is quite likely that
you've made a mistake in operating the calculator. Try reread-
ing portions of the manual, and check “Answers to Common
Questions” on page 109.
3. Contact the Calculator Support department. The address and
phone number are listed on the inside back cover.
Assistance, Batteries, Memory and Service 115
Confirming Calculator Operation—
the Self-Test
If the display can be turned on, but it appears that the calculator is
not operating properly, you can do a diagnostic self-test. To run the
self-test:
1.
116
First, hold down the [C] key, then press and hold (y*]. (A continu-
ous self-test can be performed by holding down [C] as you press
[1/x]. This test displays various patterns and the copyright message,
then automatically repeats. The test continues until you halt it by
pressing [C].)
Press any key four times, and watch the display as various pat-
terns are displayed. After pressing the key four times, the
calculator displays the copyright message COPr. HP 1987 momen-
tarily, and then the message 01. This indicates the calculator is
ready for the key test.
Starting at the upper left corner ([4x)) and moving from left to
right, press each key in the top row. Then, moving left to right,
press each key in the second row, third row, etc., until you've
pressed each key.
M If you press the keys in the proper order, and they are func-
tioning properly, the calculator displays two-digit numbers.
(The calculator is counting the keys using hexadecimal base.)
M If you press a key out of order, or if a key isn't functioning
properly, the next keystroke displays 20 - FAIL, followed by a
one-digit number. If you received the message because you
pressed a key out of order, you should reset the calculator
(hold down and press [LN]) and start the self-test over. If
you pressed the keys in order, but got this message, the calcu-
lator requires service.
When the keyboard test has been completed, the calculator dis-
plays a message:
® The calculator displays 20 - Good if it passed the self-test.
mM The calculator displays 20 - FAIL, followed by a one-digit
hexadecimal number 1 through F, if it failed the self-test. If
the calculator failed the self-test, it requires service (page 118).
Include a copy of the fail message with the calculator when
you ship it for service.
Assistance, Batteries, Memory, and Service
9. To exit the self-test, reset the calculator (hold down [C] and press
(EN).
6. If the calculator failed the self-test, rerun the test to verify the
results.
Limited One-Year Warranty
What Is Covered
The calculator (except for the batteries, or damage caused by the bat-
teries) is warranted by Hewlett-Packard against defects in materials and
workmanship for one year from the date of original purchase. If you sell
your unit or give it as a gift, the warranty is automatically transferred
to the new owner and remains in effect for the original one-year pe-
riod. During the warranty period, we will repair or, at our option,
replace at no charge a product that proves to be defective, provided
you return the product, shipping prepaid, to a Hewlett-Packard ser-
vice center. (Replacement may be with a newer model of equivalent
or better functionality.)
This warranty gives you specific legal rights, and you may also have
other rights that vary from state to state, province to province, or
country to country.
What Is Not Covered
Batteries, and damage caused by the batteries, are not covered by the
Hewlett-Packard warranty. Check with the battery manufacturer about
battery and battery leakage warranties.
This warranty does not apply if the product has been damaged by
accident or misuse or as the result of service or modification by other
than an authorized Hewlett-Packard service center.
Assistance, Batteries, Memory, and Service 117
No other express warranty is given. The repair or replacement of a
product is your exclusive remedy. ANY OTHER IMPLIED WARRANTY
OF MERCHANTABILITY OR FITNESS IS LIMITED TO THE ONE-YEAR
DURATION OF THIS WRITTEN WARRANTY. Some states, provinces,
or countries do not allow limitations on how long an implied war-
ranty lasts, so the above limitation may not apply to you. IN NO
EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR
CONSEQUENTIAL DAMAGES. Some states, provinces, or countries do
not allow the exclusion or limitation of incidental or consequential
damages, so the above limitation or exclusion may not apply to you.
Products are sold on the basis of specifications applicable at the time
of manufacture. Hewlett-Packard shall have no obligation to modify
or update products once sold.
Consumer Transactions in the United Kingdom
This warranty shall not apply to consumer transactions and shall not
affect the statutory rights of a consumer. In relation to such transac-
tions, the rights and obligations of Seller and Buyer shall be
determined by statute.
If the Calculator Requires Service
Hewlett-Packard maintains service centers in many countries. These
centers will repair a calculator, or replace it with the same model or
one of equal or greater value, whether it is under warranty or not.
There is a service charge for service after the warranty period. Calcu-
lators normally are serviced and reshipped within five working days.
Obtaining Service
E In the United States: Send the calculator to the Calculator Service
Center listed on the inside of the back cover.
E In Europe: Contact your Hewlett-Packard sales office or dealer, or
Hewlett-Packard’s European headquarters for the location of the
nearest service center. Do not ship the calculator for service without
first contacting a Hewlett-Packard office.
118 Assistance, Batteries, Memory and Service
Hewlett-Packard S.A.
150, Route du Nant-d’Avril
P.O. Box CH 1217 Meyrin 2
Geneva, Switzerland
Telephone: (022) 780 81 11
= In other countries: Contact your Hewlett-Packard sales office or
dealer or write to the Corvallis Service Center (listed on the inside of
the back cover) for the location of other service centers. If local
service is unavailable, you can ship the calculator to the Corvallis
Service Center for repair.
All shipping, reimportation arrangements, and customs costs are your
responsibility.
Service Charge
There is a standard repair charge for out-of-warranty service. The
Corvallis Service Center (listed on the inside of the back cover) can tell
you how much this charge is. The full charge is subject to the customer's
local sales or value-added tax wherever applicable.
Calculator products damaged by accident or misuse are not covered by
the fixed service charges. In these cases, charges are individually
determined based on time and material.
Shipping Instructions
If your calculator requires service, ship it to the nearest authorized service
center or collection point,
m Include your return address and description of the problem.
# Include proof of purchase date if the warranty has not expired.
m Include a purchase order, check, or credit card number plus
expiration date (VISA or MasterCard) to cover the standard repair
charge.
Assistance, Batteries, Memory, and Service 119
M Ship the calculator in adequate protective packaging to prevent
damage. Such damage is not covered by the warranty, so we rec-
ommend that you insure the shipment.
E Pay the shipping charges for delivery to the Calculator Service
Center, whether or not the calculator is under warranty.
Warranty on Service
Service is warranted against defects in materials and workmanship for
90 days from the date of service.
Service Agreements
In the U.S., a support agreement is available for repair and service.
Refer to the form in the front of the manual. For additional informa-
tion, contact the Calculator Service Center (see the inside of the back
cover).
Regulatory Information
U.S.A. The HP-20S generates and uses radio frequency energy and
may interfere with radio and television reception. The calculator com-
plies with the limits for a Class B computing device as specified in
Subpart J of Part 15 of FCC Rules, which provide reasonable protec-
tion against such interference in a residential installation. In the
unlikely event that there is interference to radio or television reception
(which can be determined by turning the HP-20S off and on or by
removing the batteries), try:
E Reorienting the receiving antenna.
m Relocating the calculator with respect to the receiver.
120 Assistance, Batteries, Memory, and Service
For more information, consult your dealer, an experienced
radio /television technician, or the following booklet, prepared by the
Federal Communications Commission: How to Identify and Resolve
Radio-TV Interference Problems. This booklet is available from the U.S.
Government Printing Office, Washington, D.C. 20402, Stock Number
004-000-00345-4. At the first printing of this manual, the telephone
number was (202) 783-3238.
West Germany. The HP-20S complies with VFG 1046/84, VDE
0871B, and similar noninterference standards. If you use equipment
that is not authorized by Hewlett-Packard, that system configuration
has to comply with the requirements of Paragraph 2 of the German
Federal Gazette, Order (VFG) 1046/84, dated December 14, 1984,
Assistance, Batteries, Memory and Service 121
Messages
Press or [€] to clear a message from the display.
ALL CLr (All Clear). Continuous memory has been erased (page 114).
COPr. HP 1987 (Copyright HP 1987). Copyright is displayed during
self-test.
CPL (Complex Operations). Built-in program (page 94).
Error - Func (Error - Function).
B Attempt to divide by zero.
B Attempt to calculate combinations or permutations with n<r, n or r
not positive integer or >101*.
mM Attempt to use a trigonometric or hyperbolic function with an ille-
gal argument.
Attempt to calculate the Jogarithm of zero or a negative number.
Attempt to calculate 00 or 0 raised to a negative power.
Attempt to raise a negative number to a noninteger power.
Attempt to calculate the square root of a negative number.
Error - FuLL (Error - Full). Attempt to calculate an expression with
more than five pending operations (page 24), or attempt to enter more
than 99 program lines.
Error - LbL (Error - Label). Attempt to or a label that is not
in the program.
122 Messages
Error - StAt (Error - Statistics).
mM Attempt to calculate Y,,, %, Y, or r with x-data only (all y-values
equal to zero).
E Attempt to calculate x, ÿ, r m, or b with all x-values equal.
B Attempt to calculate with 1 equal to zero.
B Attempt to calculate S,, Sy X, ÿ, T m, Or b, with n < 1, or when a
division by zero or square root of a negative number occurred.
Also, attempt to calculate x, ÿ with n = 0, or Ÿ, with Ey = 0.
Error - Sub (Error - Subroutine). Subroutines nested more than four lev-
els deep (page 80).
Fit (Curve Fitting). Built-in program (page 105).
int (Numerical Integration). Built-in program (page 91).
OFLO (Overflow). The magnitude of a result is too large for the calculator
to handle. OFLO is displayed for a moment (or remains in the display
when OFLO occurs in a running program), then the HP-20S returns
+ 9.99999999999E499 in the current display format. If OFLO is caused by
storage register arithmetic, the display value remains unchanged. If OFLO
is caused by Z+, n appears in the display. (Refer to “Range of Numbers”
on page 20).
root (Root Finder). Built-in program (page 89).
running (Running). A program or a long calculation is running.
too big (Too Big). The magnitude of the number is too large to be con-
verted to hexadecimal, octal, or binary base. The number must be in the
range —34,359,738,368 < n < 34,359,738,367 (page 48).
qUAd (Quadratic Equation). Built-in program (page 102).
3 bY 3 (3 x 3 Matrix Operations). Built-in program (page 97).
20 - FAIL n (HP-20S Fail). The self-test failed; n is the fail code
(page 116).
20 - Good (HP-20S Good). The self-test is complete (page 116).
Messages 123
Index
Bold type indicates the main page reference if a topic is discussed in
more than one place.
Special Characters
=, 14
(>), 14
[4], 69
Y), 69
[7.], 19, 109
=, 31
{x}, 34, 110
(%], 32
L%CHG], 33
[0], 24
D}, 24
CL, 11
(1/x}, 15
[10%], 31
[3+], 51
[3-), 51
[€], 9, 68, 71
(=), 10
:, 13, 110
n, 51, 53, 54
Ух, 51, 53, 54
Ex, 51, 53, 54
Ху, 51, 53, 54
Ey”, 51, 53, 54
Zxy, 51, 53, 54
0, 38
12-digit representation, 45
LABS], 41
2's complement, 47, 49
3 x 3 matrix operations, 97
124 Index
A
Absolute value, 41
[Acos), 35, 41
(ALL), 17
ALL CLr, 114
Alpha characters, 15
Angle conversions, 36
Angles, 35
Annunciators, 13, 67
Answers to questions, 109-110
Arc sine, 35
cosine, 35
tangent, 35
Arithmetic operators, 10
[ASIN], 35
[ATAN], 35
Auto-off, 9
Back step, 69, 72
Base arithmetic, 44
conversions, 44
illegal keys, 45
2's complement, 47
—] 9
Batteries, 9, 111
BIN, 13, 44
[BIN], 44
Binary, 44
windows, 45
Branching, 80
Built-in programs, 61, 88
C
[»°C), 42
Calculator Support Department, 109
Celsius, 42
Centimeters, 42
Chain calculations, 10
Change sign, 11
Checksum, 66
Clear, calculator, 12
memory, 12, 110
messages, 12, 21, 122
programs, 12, 88
registers, 12, 28
statistical registers, 12, 51
Closing parentheses, 24
(CLPRGM], 12, 67, 71
[CLrRG], 12, 28
(ecz), 51
[rem], 42
[Cnr], 39-40
Colon, 13, 110
Combinations, 39, 40
Comma, 19, 109
Complex numbers, 94
Complex operations, 94
equations, 97
Conditionals, 81, 85-86
Continuous memory, 9
Contrast, adjust, 9
Correlation coefficient, 54
Coordinate conversions, 38
[cos], 35
Cosine, 35
Cramer's rule, 97
Cursor, 12
Curve fitting, 105
equations, 105
D
Data input, in programs, 67
Data pairs, entering, 27
[DEC], 44
Decimal, 44
exchange with comma, 19
places, 16
point, 16, 19, 109
(ea), 35
(+DEG), 36
Degrees, 35, 36
Delete program lines, 71
Diagnostic, self-test, 116
Digit separator, 19
Display, 16
fix, 17
contrast, 9
engineering notation, 18
format, 16
scientific notation, 18
Do if true, 81
Dot, see Decimal
Down, moving, 68-69
E
E 19
ENG, 18
[ENG], 19
Engineering notation, 18, 110
Erase continuous memory, 114
Error messages, 21, 122
Errors, 9
Exchange two numbers, 26
Exponent, 110
entering, 19
Exponentiation operator, 31
[=], 31
F
Factorials, 39
Fahrenheit, 42
Features, 4
Five pending operations, 24
(Fx), 17
Floating decimal, see [ALL], 17
Formulas, 40, 60, 91, 93, 97, 101,
104, 105
[FP], 41
Fractional part, 41
Full float, [ALL], 17
Index 125
G
[+gal), 42
Gallons, 42
Goto, 67
label, 68
line number, 68
start of program, 68
GRAD, 13
Grads, 35
(GRD], 35
[GTO], 67, 70, 80
H
Help, Support Department, 109
HEX, 13, 44
[HEX), 44
Hexadecimal, 44
Hidden number, 15
[+HMS], 36
Hours, 36
conversions, 36
hours-minutes-seconds, 36
[>HR], 36
[SIN], 41
=) (SN), 41
(cos), 41
A] (acos), 41
(TAN), 41
(+) (ATAN), 41
Hyperbolic functions, 40
cosine, 41
sine, 41
tangent, 41
Imaginary parts of roots, 102
Inactive keys, 45, 87
(+in], 42
Inches, 42
Incorrect digits, 9
Input order, 16, 26, 38, 57, 67
[INPUT], 14, 30
Insert program lines, 72
Integer part, 41
Integration, numerical, 91
126 Index
Internal number storage, 16
represention, 47
Inverse hyperbolic functions, 41
sine, 41
cosine, 41
tangent, 41
[IP], 41
K
Keycodes, 64-65
Kilograms, 42
[+kg), 42
L
[+1], 42
Label, 66, 68
search order, 77
Largest negative number, 50
Largest positive number, 50
[+b], 42
LAST register, 25
[LAST], 25
[LBL], 66
Levels, subroutine, 80
Library, built-in programs, 88
Line numbers, 64
Linear estimation, 51, 57
Linear regression, 57
Liters, 42
[LN], 31
[LOAD], 88
[LOG], 31
M
[mb], 57
Malfunction, 115
Mantissa, 18, 20
Matrix, 3 x 3 program, 97
Mean, 51, 54
welghted, 51, 52, 59
Memory, clear, 12, 110
continuous, 9
Messages, 21, 122
Mistake, typing, 9, 68, 71
Mode, trigonometric, 34, 110
Modes, 34, 44, 63
N
(1, 39
Negative numbers, 11
Nested subroutines, 80
Newton's method, 89
Nonprogrammable functions, 87
Number base modes, 44
Number of lines, 64, 87
Number order, 26
Numerical integration, 91
equations, 93
O
OCT, 13, 44
(OCT), 44
Octal, 44
Off, 9
[OFF], 9
On, 9
(ON], 9
One-number functions, 15
One-variable statistics, 51
Operator keys, 10
Operator priority, 22
Operators, arithmetic, 10
Overflow, 20, 123
Р
(ФР), 38
Parentheses, 24
PEND, 13
PEND, 13, 110
Pending operations, 24, 110
Percent change, 30, 33
Period, 16, 19, 109
Permutations, 39, 40
Pi, 34
(Pnr], 39-40
Polar to rectangular, 38
Pounds, 42
Power on and off, 9
Precedence, 22
Priority, 22
PRGM, 13
[PRGM], 67
Probability formulas, 40
Programming, 61
accessing, 67, 72
built-in, 88
error stops, 71
labels, 66
lines, number of, 67
memory, 87
mode, 61, 67
number of lines, 87
original, 61
pointer, 66
pointer, positioning, 68
quick example, 61
step-through, 72
stopping, 70
testing, 72
viewing, 68
Pythagorean theorem, 73
Q
Quadratic equation, 102
equations, 104
R
PA), 38
(R/S), 70,
[+RAD], 36
RAD, 13
[RAD], 35
Radians, 35, 36
Random number generator, 75
Range of numbers, 20
in different bases, 48
[RCL), 27, 73
Real parts of roots, 102
Reciprocal, 31
Rectangular to polar, 38
Registers, 27, 51-52, 73
Reset, 13, 113
Return, 66, 68
end of program, 66
end of subroutine, 76
[AND], 41
Root finder, 89
equations, 91
index 127
Roots, 32
Rounding, 17, 41
Routines, 76
(RIN), 66, 77
S
SCI, 18
[sci], 18
Scientific notation, 17-18, 110
Screen contrast, 9
Scroll, 68
Self-test, 116
Separate arguments, 30
Service, 114, 118, 120
Shift keys, 14
Shifted operations, 14
[show], 20
Sigma +, 51
Sigma —, 51
Sign, change, 11, 19
Single step, 69
Simpson's rule, 91
[sin], 35
Sine, 35, 110
Slope, 58
Smallest negative, see largest
negative
Square, 31
Standard deviation, 51, 54
sample population, 55
Statistical formulas, 60
Step, 68, 72
[STO], 27, 73
Storage registers, 28, 51, 71
Store, 27, 73
Subroutines, 76
GTO, 76
LBL, 76
levels, 80
RIN, 76
XEQ, 77
Summation data, 27, 51
Summation statistics, 51
Support Department, 109
Swap, 14, 26, 57, 67
128 Index
[SWAP], 14, 26, 57, 67
Switching bases, 44
[SxS7], 53, 54-56
T
[TAN], 35
Tangent, 35
Test programs, 72
Theta, 38
3 X 3 matrix operations, 97
3 X 3 matrix operations,
equations, 99
Time out, 9
Trigonometric mode, 34, 110
Trigonometric functions, 34, 110
True /false test, 81
2's complement, 49
Two numbers, separating, 14
Two results, 15
Two-number functions, 14, 16
Two-variable statistics, 14, 51, 52
U
Underflow, 20
Up, moving, 68-69, 72
W
Warranty, 117, 120
Weighted mean, 51, 52, 59
Windows, 45
Word size, 47
X
(x=07], 81
Ea), 66, 69
=), 31
(Fw), 53-55
[x<y?), 81
Er), 57
Y
y-intercept, 57,58
LY), 32
(Ar), 57
This regulation applies only to The Netherlands
Batteries are delivered with this product.
when empty do not throw them away but
collect as small chemical waste.
Bij dit produkt zijn batterijen geleverd.
Wanncer deze leeg zijn, moet u ze niet
weggoolen maar inleveren als KCA.
Contacting Hewlett-Packard Worldwide
For information on technical support and service for this product,
refer to the card, “Contacting Hewlett-Packard Worldwide”, which is
Included in the product box.
Contents
Page 9 1: Getting Started
22 2: Arithmetic and Storage Registers
30 3: Numeric Functions
44 4: Base Conversions and Base Arithmetic
5: Statistical Calculations
6: Programming
7: Built-In Program Library
Assistance, Batteries, Memory, and Service
Messages
124 Index
LD Paciano
Part Number 00020-90001
Edition 6
English
Printed in Singapore 11/94 (P) 00020-90001

advertisement

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Related manuals

Download PDF

advertisement