Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 18 Online
OpenStudy (anonymous):

On ps2, Newton #3: would the way I wrote the compute_root function work? I noticed its different than the solution. I get the same answer when I run the code. http://pastebin.com/07BjJyPK Also, I am unsure of the while loop I have in there. If x_0 changes in the code under the while loop (if guess is wrong), will that new x_0 be entered into the while abs(evaluate_poly(poly, x_0)) >= x?

OpenStudy (anonymous):

I didn't test the code but I don't see any problem with it.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!