return 0 if we run out of iterations in a NewtonComputation

git-svn-id: svn://anubis/gvsu@328 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
josh 2008-12-07 23:32:25 +00:00
parent f4a45fe3a5
commit 112dbe3ad3

View File

@ -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;
}