aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRossTheRoss <msattr@gmail.com>2019-02-21 20:50:46 -0600
committerRossTheRoss <msattr@gmail.com>2019-02-21 20:50:46 -0600
commit29abd06088a0a42f188f62e89a18f460970b326d (patch)
treec07482880c4fec2592daf6bd137333249bd60c32
parentAdd Photon stuff (diff)
downloadhomework-29abd06088a0a42f188f62e89a18f460970b326d.tar
homework-29abd06088a0a42f188f62e89a18f460970b326d.tar.gz
homework-29abd06088a0a42f188f62e89a18f460970b326d.tar.bz2
homework-29abd06088a0a42f188f62e89a18f460970b326d.tar.lz
homework-29abd06088a0a42f188f62e89a18f460970b326d.tar.xz
homework-29abd06088a0a42f188f62e89a18f460970b326d.tar.zst
homework-29abd06088a0a42f188f62e89a18f460970b326d.zip
Nani
-rw-r--r--ee1301/wk3/lab3/RootBabylonOG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ee1301/wk3/lab3/RootBabylonOG.cpp b/ee1301/wk3/lab3/RootBabylonOG.cpp
index 9972250..d0d8b39 100644
--- a/ee1301/wk3/lab3/RootBabylonOG.cpp
+++ b/ee1301/wk3/lab3/RootBabylonOG.cpp
@@ -13,7 +13,7 @@ double BabylonRoot(double n) {
do {
guess = gennewGuess(n,guess);
cout << guess << endl;
- } while (abs(guess-real)/real>0.05); //Keep guessing unitl within 5% of the actual square root
+ } while (abs(guess-real)/real>0.01); //Keep guessing unitl within 1% of the actual square root
return guess;
}