-
-
Save jeacom25b/60cdaecc8749767356d9de5d64cef499 to your computer and use it in GitHub Desktop.
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 characters
def sqrt(num): | |
root = num | |
for i in range(100000): | |
root *= (num / (root * root) + 1) / 2 | |
return root |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment