How to extract the square root