Improved atan estimate for better accuracy