finding square roots
here is an interesting example function for javascript. while not needed, it serves to demonstrate the procedure using javascript.
function sqrt(number){
var guess = 2, old=0;
for(var step=0;step<128;step++){
old = guess;
guess = (guess + (number/guess)) / 2;
if(old===guess){break;}
}
return guess;
}