Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- disp(babylonsqr(64, 10))
- function guess=babylonsqr(x, k)
- guess = 1;
- for i=1:k
- guess = (guess + (x/guess))/2;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement