Why Nostr? What is Njump?
2023-06-21 14:16:55

Barry Schwartz 🫖 on Nostr: It turns out there is a very simple way compute the square root while purposely never ...

It turns out there is a very simple way compute the square root while purposely never underestimating it: Heron’s method, initialized with the maximum of 1 and the number whose root you are taking.

Just be sure NOT to run the algorithm to the full precision of the floating point type!
Author Public Key
npub18jxf9tvjdxralatrrfsezklua6fsxgr38yeaaq4jexhqavvfuq7qg7q3s5