Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

This bit of code appeared in a recent lecture: http://dpaste.com/1249825/ Why does it only return true/false when you run it? Why doesn't the return statement (return abs(x - y) <= epsilon) return anything on its own?

OpenStudy (anonymous):

because this code "abs(x - y) <= epsilon" combined with a "return" evaluates to a boolean value. so it's comparing abs(x - y) to epsilon to tell us if abs(x - y) is less/greater epsilon.

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!