From 112dbe3ad31d3ca6df7f12594cb78891c2d32574 Mon Sep 17 00:00:00 2001 From: josh Date: Sun, 7 Dec 2008 23:32:25 +0000 Subject: [PATCH] return 0 if we run out of iterations in a NewtonComputation git-svn-id: svn://anubis/gvsu@328 45c1a28c-8058-47b2-ae61-ca45b979098e --- cs677/final/NewtonComputation.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/cs677/final/NewtonComputation.cc b/cs677/final/NewtonComputation.cc index 501c371..d34105c 100644 --- a/cs677/final/NewtonComputation.cc +++ b/cs677/final/NewtonComputation.cc @@ -64,4 +64,5 @@ unsigned int NewtonComputation::compute(double x, double y) */ rootGuess -= (pow(rootGuess, 6.0) - 1.0) / (6.0 * pow(rootGuess, 5.0)); } + return 0; }