How well $\lfloor\sqrt{x}\rfloor + \dfrac{x-\lfloor \sqrt{x}\rfloor^2}{2\lfloor \sqrt{x}\rfloor}$ approximate $\sqrt{x}$ ?
After some searching, I found this interesting formula. It can be shown easily that for $x$ a square number this formula will always work.
I don't know how well it is actually approximating the square root. With a graph, this formula seems to fit quite well with the square root. Especially for very large values or very close to square numbers.
And also, when this formula create the worst approximation ?
Thanks for the help !