Update sqrt_double.cpp

This commit is contained in:
DarkWarrior703 2020-04-25 16:30:52 +03:00 committed by GitHub
parent f27f3fcbf0
commit a4d3475ed5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,7 @@ double Sqrt(double x) {
between 1e-7 and 1e-12.
double epsilon = 1e-12;
*/
double epsilon = 1e-12;
while ( l <= r ) {
double mid = (l + r) / 2;
if ( mid * mid > x ) {