Start with any positive start value, call this r.
Find the average of r and x/r; call this r2
Now find the average of r2 and x/r2; call this r3
Now find the average of r3 and x/r3; call this r4
Repeat these steps until the two values are as close as desired; that is the square root. The closer they are the more accurate the final answer.
Repeat these steps until the two values are as close as desired; that is the square root. The closer they are the more accurate the final answer.
You have to love maths!
No comments:
Post a Comment