# Online square root simplifyer

$$\sqrt{x} = a.\sqrt{b}$$

## Online simplifier

Simplify the square root of:

$$\sqrt{8} = 2\sqrt{2} \notag$$
To find the best simplification of $$\sqrt{x}$$, the algorithm loops every integer from $$\sqrt{x}$$ to 1, let's call this interger $$i$$. If $$\dfrac{x}{i^2}$$ is an integer, we found the best simplification since the loop decreases. $$i$$ is the highest perfect square that is a factor of $$x$$.