The following algorithm finds the square root of a positive number:
To begin the computation, you need a value low Guess less than the square root of the number and a value high Guess that is larger. You can use zero as lowGuess and the number itself as high Guess. The parameter tolerance controls the precision of the result independently of the magnitude of number. For example, computing the square root of 250 with tolerance equal to 0.00005 results in 15.81. This result has four digits of accuracy. Implement this algorithm.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here