Home iWeb Logon Internet Meetings Contact Us Site Map

Z Programs

Z.square.root


Argument:         A

Returns:            SQR(A)
iterative program to find square root
It averages out the divisor and the result until they're within .0001
Thus, it cannot do square roots on #'s < .0001*.0001=.0000001
There's an extra check that # of iterations won't exceed 15,
though # of iterations is usually under 6.

Posted: August 03, 2001

Return to list of Z Programs