Page 230
230 Appendix D: A Detailed Look at _
If the algorithm terminates its search near a local minimum of the function's magnitude, clear the Error 8 display and observe the numbers in the X-, Y-, and Z-registers by rolling down the stack. If the value of the function saved in the Z-register is relatively close to zero, it is possible that a root of your equation has been found – the number returned in the X-register may be a 10-digit number very close to a theoretical root. You
can explore this potential minimum further by rolling the stack until the returned estimates are back in the X- and Y-registers and then executing _ again using these numbers as initial estimates. If an actual minimum has been found, Error 8 will again be displayed and the number in the X-register will be approximately the same as before, but possibly closer to the actual location of the minimum.
Of course, you may deliberately use _ to find the location of a local minimum of the function's magnitude. However, in this case you must be careful to confine the search in the region of the minimum. Remember, _tries hard to find a zero of the function.
If the algorithm stops searching and displays Error 8 because it is working on a horizontal asymptote (when the value of the function is essentially constant for a large range of x), the estimates in X- and Y-registers usually are significantly different from each other. The number in the Z-register is the value of the potential asymptote. If you execute _ again using as initial estimates the numbers that were returned in the X- and Y-registers, a
horizontal asymptote may again cause Error 8, but with numbers in the X- and Y-registers that will differ from the previous numbers. The value of the function in the Z-register would then be about the same as that obtained previously.
Contents
HP-15C Owner’s Handbook
HP Part Number 00015-90001 Edition 2.4, Sep
Legal Notice
Introduction
Contents
Contents
Display and Continuous Memory
Program Editing
Program Branching and Controls
Subroutines
Calculating With Matrices
Indirect Display Control
Calculating With Complex Numbers
Numerical Integration
Appendix D a Detailed Look at
Contents Appendix a Error Conditions
Appendix C Memory Allocation
Appendix E a Detailed Look at f
Programming Summary and Index
Contents Appendix F Batteries
Function Summary and Index
Subject Index
HP-15C Problem Solver
Quick Look at
Manual Solutions
To Compute Keystrokes Display
Programmed Solutions
Keystrokes Display
002 003 004 005 006 007 008 009 8313
KeystrokesDisplay
001-42,21,11
300.51
HP-15C a Problem Solver
Part l HP-15C Fundamentals
Keyboard Operation
Power On and Off
Getting Started
Section
Keying in Exponents
Prefix Keys
Changing Signs
I O m ´ P I l F T s ? t H b
Clear Keys
Clears only the last digit
Display Clearing ` and −
Digit entry not terminated
Two-Number Functions
Calculations
One-Number Functions
6532
13.0000
17 +
26.0000 22.0000 5000
78.0000
Numeric Functions
Number Alteration Functions
One-Number Functions
General Functions
Pressing Calculates
Trigonometric Operations
Time and Angle Conversions
Radians
Degrees/Radians Conversions
7069
40.5000
Logarithmic Functions
Hyperbolic Functions
Percentages
Power Function
Two-Number Functions
To Calculate Keystrokes Display
Calculates 3% of $15.76 the tax
Polar and Rectangular Coordinate Conversions
Enters the base number the price
Polar Conversion. Pressing
Keystrokes Display
Automatic Memory Stack Registers
Automatic Memory Stack Last X, and Data Storage
Automatic Memory Stack Stack Manipulation
Always displayed
Lost
Stack Manipulation Functions
Memory Stack, Last X, and Data Storage
Lost
22.2481
Last X Register and K
287.0000
12.9000
20.6475
Calculator Functions and the Stack
13.9 +
Order of Entry and the v Key
+15 X15
65.0000
Nested Calculations
7 +
69.0000
Arithmetic Calculations With Constants
5 ‛15 Keys
000
Keystrokes Display Growth factor
1000
322.5000
Storage Register Operations
Storing and Recalling Numbers
520.8750
Clearing Data Storage Registers
Storage and Recall Arithmetic
For storage arithmetic
For recall arithmetic
24 l-0
Problems
Overflow and Underflow
15.0000
Memory Stack, Last X, and Data Storage
60.0000
Statistics Functions
Probability Calculations
5764
Random Number Generator
270,725.0000
3422
Accumulating Statistics
Registers
Register Contents
20 z 61v 40 z 7.21 60 z 7.78 80 z l
20.00 40.00 60.00 80.00 Kg per hectare
Metric tons per Hectare, y
Σy2
Correcting Accumulated Statistics
20 w 20 z
40.00
Mean
Standard Deviation
Standard deviation about the mean nitrogen
Linear Regression
31.62
Application
Linear Estimation and Correlation Coefficient
Statistics Functions
Other Applications
70 ´j
Fixed Decimal Display
Display Continuous Memory
Display Control
234568
Scientific Notation Display
Engineering Notation Display
234567
Mantissa Display
Round-Off Error
Special Displays
Annunciators
12,345.67
Error Display
Digit Separators
12.345.6700
Status
Low-Power Indication
Continuous Memory
Resetting Continuous Memory
Page
Part ll HP-15C Programming
Creating a Program
Programming Basics
Mechanics
Loading a Program
Programming Basics
´b a
002 003 004 005 006 007 008
Intermediate Program Stops
Running a Program
How to Enter Data
300.51 300.51 ´A
Program Memory
Radius, r Height, h Base Area Volume Surface Area
Totals
007-44,40
002
004 005
010
Or G a
Instruction Coding
Further Information
Program Instructions
Memory Configuration
Keycode 25 second row, fifth key
Initial Memory Configuration
60 ´ m%
19 ´ m%
Program Boundaries
´ m %
19.0000
´bA ´b3 End of memory
Unexpected Program Stops
Abbreviated Key Sequences
¤ @ y ∕
User Mode
Polynomial Expressions and Horners Method
LOG %
002 003 004 005 006 007 008 009 0000
Nonprogrammable Functions
001-42,21,12
12,691.0000
Problems
Program Editing
Moving to a Line in Program Memory
Inserting Program Lines
Examples
Deleting Program Lines
Or use Â
Single-Step Operations
Release
Line Position
Âhold
Result
Insertions and Deletions
Initializing Calculator Status
PV 1 + i n
Interest
+ i n
100 270
´bA D ´4 O0 2* O1 2÷ * ´ ´ l0 l1 ´r * n
Program Branching Controls
Branching
Conditional Tests
Test
Flags
n will clear flag number n
Example Branching and Looping
014
010-45,20
013-43,30
016-44,40
Example Flags
Formula is
005-43, 4
002-43
004-42,21,15
006-42,21
48.0000
Go to
250.0000
10,698.3049
Looping
Conditional Branching
System Flags Flags 8
Program Branching and Controls
Subroutine Execution
Subroutines
Go To Subroutine and Return
´b.1
Subroutine Limits
003- O0
000 001- ´b9
002- R
004
´ b.4
´b.5
Subroutine Return
Nested Subroutines
106
Index Register Loop Control
V and % Keys
Index Register Storage and Recall
Indirect Program Control With the Index Register
Program Loop Control
Index Register and Loop Control
Indirect Branching With
Index Register Arithmetic
Exchanging the X-Register
Loop Control With Counters I and e
Indirect Flag Control With
Indirect Display Format Control With
Nnnnn x x x y y 5 0 0
Start count at zero Count by twos Count up to
Storing and Recalling Keystrokes Display
Examples Register Operations
Iterations
12.3456
Storage Register Arithmetic
Example Loop Control with e
Exchanging the X-Register
012-42, 5
Loop control number in R2
−− 011- 42
013- 22
64.8420 0000 50.0000
Example Display Format Control
15 O
Index Register Contents
Indirect Display Control
Index Register and Loop Control
118
Part lll HP-15C Advanced Functions
Creating the Complex Stack
Complex Stack and Complex Mode
Calculating With Complex Numbers
120
Entering Complex Numbers
Deactivating Complex Mode
Complex Numbers and the Stack
´ % hold 8.0000 release
Z 8 Y 7 X Keys
Stack Lift in Complex Mode
Manipulating the Real and Imaginary Stacks
Clearing a Complex Number
Or other operation
Continue with any operation
− 4 v Continue with any operation
0000 17.0000 144.0000
Entering Complex Numbers with −. The clearing functions −
´ %hold release
Entering a Real Number
Followed by another number
Entering a Pure Imaginary Number
´ Continue with any operation
´ O
Operations With Complex Numbers
Storing and Recalling Complex Numbers
L 2 ´
¤x N o ∕ @ a
+ * ÷ y
0428
2000
7000
0491
5708
Polar and Rectangular Coordinate Conversions
Complex Results from Real Numbers
´ % hold Release1.5708
Cos θ + i sin θ = re iθ Polar + ib = ∠ θ
+ 3.1434
8452
2981
2361
352.0000
872.0000
4721
For Further Information
Calculating With Matrices
138
Keystrokes Display Deactivates Complex Mode
= A-1B
11.2887
Matrix Dimensions
Running
2496
Dimensioning a Matrix
Number Rows Columns
´mA
Displaying Matrix Dimensions
Changing Matrix Dimensions
Keystrokes l B Display
Storing and Recalling Matrix Elements
Storing and Recalling All Elements in Order
⎡ a
Checking and Changing Matrix Elements Individually
Keystrokes Display
Matrix Descriptors
Matrix Operations
Storing a Number in All Elements of a Matrix
Result Matrix
Copying a Matrix
One-Matrix Operations
Calculating with Matrices
Scalar Operations
LB b
Elements of Result Matrix
LA a
LB b 2 LA a 2
Arithmetic Operations
Keystrokes Display Subtracts 1 from the elements
Matrix Multiplication
= AT B
Keystrokes Display l a a
Solving the Equation AX = B
86 OA
24 OA
2400
8600
274 OB 233 OB 331 OB 120.32 OB 112.96 OB 151.36 OB ´Á
Calculating the Residual
Week Cabbage kg 186 141 215 Broccoli kg 116
Using Matrices in LU Form
Calculations With Complex Matrices
Storing the Elements of a Complex Matrix
Then Z can be represented in the calculator by
Pressing Transforms Into
= ⎢
LA a
Complex Transformations Between ZP and Z
Inverting a Complex Matrix
Multiplying Complex Matrices
´ a
Keystrokes lA lB Display Displays descriptor of matrix a
´U lC LC lC lC lC lC lC lC ´U
Solving the Complex Equation AX = B
ZZ −1
AX = B
200.0000
170.0000
0437
0372
1311
1543
Calculating with Matrices
Miscellaneous Operations Involving Matrices
Using a Matrix Element With Register Operations
Using Matrix Descriptors in the Index Register
Stack Operation for Matrix Calculations
Conditional Tests on Matrix Descriptors
Calculating with Matrices
Using Matrix Operations in a Program
´m a
Summary of Matrix Functions
Keystrokes Results
Calculates residual in result matrix
For Further Information
180
Using
Finding the Roots An Equation
Finding the Roots of an Equation
Clear program memory
002 003
´b0
001-42,21
005 006 007
Finding the Roots of an Equation
Desired root
000 001-42,21,11
Keystrokes ¥
´ bA
003 004
Into X-register
5000 1 e t
Brings another t-value
200 t
When No Root Is Found
000 001-42,21 002 003 004 005
Error
Choosing Initial Estimates
Label
008 009
003 004 005 007
X + 8
6 x + 8
Finding the Roots of an Equation
Using in a Program
Restriction on the Use
Memory Requirements
194
Using f
Numerical Integration
002 003 004
4040
1416 7652
Begin subroutine with a label
4401
3825
$ ÷
6054
Accuracy of f
´ i ´ f
8826
7091
Using f in a Program
382
Memory Requirements
Appendix a
Error Conditions
Error 0 Improper Mathematics Operation
205
Error 1 Improper Matrix Operation
Error 2 Improper Statistics Operation
Error 5 Subroutine Level Too Deep
Error 3 Improper Register Number or Matrix Element
Error 4 Improper Line Number or Label Call
Error 6 Improper Flag Number
Pr Error Power Error
Stack Lift
Stack Lift Last X Register
Digit Entry Termination
Appendix B
Disabling Operations
Enabling Operations
Appendix B Stack Lift and the Last X Register Keys
Stack Stack Enabled. disabled 53.1301 No stack Lift
Neutral Operations
Nnn Clear u ¥
Last X Register
\ k + H ∆ \ h ÷ À P* q r c ‘ / N z ∕ P\ o j
Appendix C
Memory Allocation
Memory Space
Registers
Appendix C Memory Allocation
M % Function
Memory Reallocation
Memory Status W
19 ´ m
Restrictions on Reallocation
´m% 1.0000 Whold 1 64
Program Memory
Automatic Program Memory Reallocation
If executed
Memory Requirements for the Advanced Functions
Two-Byte Program Instructions
Together
Appendix C Memory Allocation
Appendix D
Detailed Look at
How Works
220
Appendix D a Detailed Look at
Accuracy of the Root
X4 =
000
1718
006 007 008 009 010-43,30 011 012-43,30 013
0681
Interpreting Results
´ v B
− 45 For 0 x
3x 45x 2 +
Test for x range
Branch for x ≥
End subroutine
1358
000.0000
Initial estimates
Possible root
Appendix D a Detailed Look at
007 008 009 010
´ b.0 001-42,21,.0 002 003 004 005
Bring x-value into X-register
013 014 015 016
017 018
10 v ´ ‛ 20
Error 0000 1250 5626
Finding Several Roots
Fx = xx a3 =
002 003 004 005 006 007
6667
Stores root for deflation
Same initial estimates
Second root
Deflated function value
Deflation for third root
Limiting the Estimation Time
Specifying a Tolerance
For Advanced Information
Counting Iterations
Appendix E
Detailed Look at f
How f Works
240
Accuracy, Uncertainty, and Calculation Time
X = π1 0π cos4θ − x sinθ dθ
0000 1416
´ i ´ f
Keystrokes ´ i Display
Keystrokes Display Return approximation to
´ Clear u Hold
´ f ´ Clear u hold
7858
7807
Uncertainty and the Display Format
Functions values for example
Δx = 0.5×10−n ×10m
= aδx dxb = ab 0.5×10−n + m x dx
Conditions That Could Cause Incorrect Results
∞ xe− xdx
001-42,21 002- 1 003 004 005
Appendix E a Detailed Look at f
Appendix E a Detailed Look at f
Conditions That Prolong Calculation Time
Approximation to integral
Keys lower limit into
Keys upper limit into
Uncertainty
Appendix E a Detailed Look at f
Obtaining the Current Approximation to an Integral
For Advanced Information
Batteries
Low-Power Indication
Installing New Batteries
Batteries
Appendix F Batteries
Verifying Proper Operation Self-Tests
2.C 3.H
Conversions
Function Summary and Index
Complex Functions
Digit Entry
Logarithmic Exponential Functions
Display Control
Index Register Control
Mantissa. Pressing
146
Mathematics
Matrix Functions
To XT
Number Alteration
To ZP page164
Stack Manipulation
Percentage
Probability
Clear u
Statistics
Storage
Trigonometry
Programming Summary and Index
269
Programming Summary and Index
Subject Index
271
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Subject Index
Modifications
Product Regulatory Environment Information
Federal Communications Commission Notice
Canadian Notice
Avis Canadien
European Union Regulatory Notice
Body number is inserted between CE