Section 13: Finding the Roots of an Equation 183
After the routine finds and displays the root, you can ensure that the
displayed number is indeed a root of f(x) = 0 by checking the stack. You have
seen that the display (X-register) contains the desired root. The Y-register
contains a previous estimate of the root, which should be very close to the
displayed root. The Z-register contains the value of your function
evaluated at the displayed root.
A previous estimate of the
root.
Value of the function at the
root showing that f(x) = 0.
Quadratic equations, such as the one you are solving, can have two roots. If
you specify two new initial estimates, you can check for a second root. Try
estimates of 0 and -10 to look for a negative root.
A previous estimate of the
root.
Value of f(x) at second root.