Answer
It continues to compute approximations for a fixed number of iterations, and
then returns the resulting approximation. (In ``sroot1.f'', five iterations
are always used. This is sufficient to approximate the square root of small
numbers, but it is lousy for large numbers. Try using the program to compute
the square roots of 4, 100, 10000, and 1000000.
Return to lesson.
Hamlet Project
hamlet@cs.utah.edu