Skip to content

Instantly share code, notes, and snippets.

@jeacom25b
Created September 11, 2019 22:01
Show Gist options
  • Save jeacom25b/60cdaecc8749767356d9de5d64cef499 to your computer and use it in GitHub Desktop.
Save jeacom25b/60cdaecc8749767356d9de5d64cef499 to your computer and use it in GitHub Desktop.
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