Created
February 18, 2025 20:23
-
-
Save alvarogfn/c5c9b3e793d6f3140038546d51761d44 to your computer and use it in GitHub Desktop.
SquareRoot
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
const squareRoot = (n, g = 1, lg) => g === lg ? g : squareRoot(n, (g + (n / g)) / 2, g); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment