def squareroot(n): root = n/2 for k in range(20): root = (1.0/2)*(root + (n / root)) return root