From 7b2883d02646fc552598911a87b76f760b6198a8 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Fri, 22 Feb 2019 15:19:09 +0000 Subject: E --- ee1301/wk3/lab3/RootBabylonOG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ee1301/wk3') 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; } -- cgit v1.2.3