8000 Update sqrt_double.cpp · SelfCodeLearning/C-Plus-Plus@a4d3475 · GitHub
[go: up one dir, main page]

8000 Skip to content

Commit a4d3475

Browse files
author
DarkWarrior703
authored
Update sqrt_double.cpp
1 parent f27f3fc commit a4d3475

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

math/sqrt_double.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ double Sqrt(double x) {
1212
between 1e-7 and 1e-12.
1313
double epsilon = 1e-12;
1414
*/
15+
double epsilon = 1e-12;
1516
while ( l <= r ) {
1617
double mid = (l + r) / 2;
1718
if ( mid * mid > x ) {

0 commit comments

Comments
 (0)
0