HP -32S Owner's Manual page 273

Rpn scientific calculator
Table of Contents

Advertisement

Example: A Local "Flat" Region. Find the root of the function
x +
2 if x<-\
/(*)=-
1 for - K x < 1
^-x + 2 if x>\
Enter the function as the program:
J01
LBL
J
J02
1
J03 ENTER *
J04
2
JQ5
RCL+ X
JQ6 x<y?
J07
RTN
J08
4
J09
-
J10
+•-
J l l
x>y?
J12
R+
J13
RTN
(a local flat region)
Solve for X using initial guesses of 10 8 and —10 8.
Keys:
•I SOLVE/J | {FN} J
rn 8 F£i fsToi x
1 EHE8E
Hi solve/J I {SOLVE}
HE
LIE
Display:
NO
ROOT
FND
1.0000E-8
0.0025
1.0000
Description:
No root found using
very small guesses
near zero (thereby re
stricting the search to
the flat region of the
function).
The last two estimates
are far apart, and the
final value of fix) is
large.
If you use larger guesses, then SOLVE can find the roots, which are
outside the flat region (at x=2 and x= —2).
*You can subsequently delete line J03 to save memory.
C: More About Solving an Equation
271

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents