square root with margin error boundry