Created
June 16, 2017 21:54
-
-
Save evidanary/7da630e732c840d38387067c8ab3bd2f to your computer and use it in GitHub Desktop.
Revisions
-
evidanary created this gist
Jun 16, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ # Square root of a number # Use newton rhapson's method def sqrt(x) r = x r = (r + x/r) / 2 while r*r > x r end