summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xQ1bin10160 -> 0 bytes
-rw-r--r--mysqrt.cpp3
2 files changed, 2 insertions, 1 deletions
diff --git a/Q1 b/Q1
deleted file mode 100755
index 5691942..0000000
--- a/Q1
+++ /dev/null
Binary files differ
diff --git a/mysqrt.cpp b/mysqrt.cpp
index 29fedf2..088fdde 100644
--- a/mysqrt.cpp
+++ b/mysqrt.cpp
@@ -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;
}
+