package utils import "math" func Sqrt(x float64) float64 { z := 1.0 for math.Abs(z*z-x) > 0.000001 { z -= (z*z - x) / (2 * z) } return z }