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:
parent
f4a45fe3a5
commit
112dbe3ad3
@ -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));
|
rootGuess -= (pow(rootGuess, 6.0) - 1.0) / (6.0 * pow(rootGuess, 5.0));
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user