Babylonian approximation of square roots

The ancient Babylonians came up with a neat geometrical way to approximate the square root of a number. You can move the green slider to see how their method works for various numbers.