diff options
author | RossTheRoss <msattr@gmail.com> | 2019-02-22 15:19:09 +0000 |
---|---|---|
committer | RossTheRoss <msattr@gmail.com> | 2019-02-22 15:19:09 +0000 |
commit | 7b2883d02646fc552598911a87b76f760b6198a8 (patch) | |
tree | b7596ca345a089be90c88350828480494feea210 /ee1301/wk3 | |
parent | Fix my problems because I'm an idiot (diff) | |
download | homework-7b2883d02646fc552598911a87b76f760b6198a8.tar homework-7b2883d02646fc552598911a87b76f760b6198a8.tar.gz homework-7b2883d02646fc552598911a87b76f760b6198a8.tar.bz2 homework-7b2883d02646fc552598911a87b76f760b6198a8.tar.lz homework-7b2883d02646fc552598911a87b76f760b6198a8.tar.xz homework-7b2883d02646fc552598911a87b76f760b6198a8.tar.zst homework-7b2883d02646fc552598911a87b76f760b6198a8.zip |
E
Diffstat (limited to 'ee1301/wk3')
-rw-r--r-- | ee1301/wk3/lab3/RootBabylonOG.cpp | 2 |
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; } |