summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Abed <michaelabed@gmail.com>2012-03-02 13:18:24 -0500
committerMichael Abed <michaelabed@gmail.com>2012-03-02 13:18:24 -0500
commitc2391ab3040f0ce641eb77b2fe5a693b9f6e2444 (patch)
treef1c1a06008eb10357047894060ae6a162e29c050
parent161b8c1662b605996167adab67018213e0a7b793 (diff)
downloadec327-lab2-c2391ab3040f0ce641eb77b2fe5a693b9f6e2444.tar.gz
ec327-lab2-c2391ab3040f0ce641eb77b2fe5a693b9f6e2444.tar.bz2
ec327-lab2-c2391ab3040f0ce641eb77b2fe5a693b9f6e2444.zip
did something
-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;
}
+