diff options
-rwxr-xr-x | Q1 | bin | 10160 -> 0 bytes | |||
-rw-r--r-- | mysqrt.cpp | 3 |
2 files changed, 2 insertions, 1 deletions
Binary files differ @@ -6,7 +6,7 @@ double mysqrt(double x) { bool goodenough = false; double guess; - double last = x / 5.0; + double last = 0.0; if (x <= 0) return x; @@ -19,3 +19,4 @@ double mysqrt(double x) } return guess; } + |