That’s the problem with numeric solver; you have to initiate each root search with an appropriate initial value.
There is no trick to find all these values by only looking at the polynomial. That is why graphic calculators, such as the HP-28C, will spare a lot of time. It is a good advice to start plotting the curve.
For x^4+8x^3+9x^2-8x-10, enter the polynomial equation into you HP-28C :
« X 8 + X * 9 + X * 8 – X * 10 - » STEQ
A draw the curve between x=-10 up to x=+10 abscises.
(10,31) DUP PMAX CHS PMIN
And start drawin the curve :
DRAW
You may obtain the following graph, using cursor keys and INS key you simply have to plot positions close to the four roots. Then press ON key to exist graph . You have now in the stack the four initial values close enough to the root to use in the HP28C’s solveur (or any solveur of you alternative HP calculators).
|4: (-6.4706,1.0000)|
|3: (-1.6176,1.0000)|
|2: (-0.8824,1.0000)|
|1: (1.0294,1.0000)|
(Exact value may depend upon pixel positions where you press the INS key)
[SOLV][SOLVR]
Enter first estimate into X register :
[ X ]
And initiate seek of the first root :
[shift][ X ]
The HP28C may display ‘Solving for X’ and stop indicating that a first zero is found :
|#X:#1.0000#############|
|Zero |
|2: (-0.8824,1.0000)|
|1: 1.0000|
Write down this first root or store it in a safe place (for example in the stack):
4 [shift][ ROLL ]
Enter second estimate into X register:
[ X ]
And initiate seek of the second root:
[shift] [ X ]
There-6.4706 value is used as the initial value and rapidly the process converges to a ‘sign reversal’ root; a root that is not exactly evaluated to zero due to limited precision of the calculator:
|#X:#-6.4495##############|
|Sign Reversal |
|1: -6.4495|
| X |EXPR=| | | | |
Process the same way for the two last estimates:
4 [shift] [ ROLL ] [ X ] [shift] [ X ] 4 [shift] [ROLL][ X ] [shift] [ X ] 4 [shift] [ROLL] [CURSOR]
And you will have the four root of the polynomial into the stack:
|4: -6.4495|
|3: -1.5505|
|2: -1.0000|
|1: 1.0000|
For the second equation, process the same way and take advantage of your HP-28C to draw the curve. It is great helper in finding how to initiate root seeking. Making all previous HP a crabs
P.S.: For second equation { -3 -0.5 1.5 2.0 } obtained the same graphicaly way!
Edited: 28 June 2012, 5:10 p.m. after one or more responses were posted