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

def sqrt(a): def tryit(x): return 0.5 * (a/x + x) return fixedPoint(tryit(a), 0.0001) This code has a bug in it. You can fix this by correcting exactly one line of the definition. Please do so in the box below.

OpenStudy (anonymous):

what does fixedPoint() expect for its first argument?

OpenStudy (anonymous):

If you try to create the framework around it and actually run the code, you will see that it complains about one of the arguments. It should be straight forward...

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!