Solving square root with absolute values