{"version":"1.0","type":"rich","title":"Go Tour: Exercise: Loops and Functions (http://tour.golang.org/flowcontrol/8)","description":"This example demonstrates Newton’s method for computing square roots, comparing iterative guesses against Go’s `math.Sqrt` for values 2, 9, 612, 90 billion, and 160 billion. The `Sqrt` function loops up to 50 times, printing each iteration’s index and current approximation, and stops early when the change between steps falls below 0.000001. Using `math.Pow`, `math.Abs`, and `fmt.Println`, it shows convergence behavior across vastly different magnitudes. The code’s commented-out intermediate calculations highlight the method’s algebraic steps without altering output.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b29f0b7bb5284538e544?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}