please help explain this
x = int(raw_input('Enter integer :'))
epsilon = 0.001
low = 0.0
high = x
numguesses = 0
ans = (low+high)/2.0
while abs(ans**3-x)>=epsilon:
numguesses+=1
print 'numguesses=',numguesses
print low,high,ans
ans =(low+high)/2.0
if ans**3x:
high = ans
else:
if x<0:
ans = (-low+high)/2.0
print ans, 'is thecube root of', x
how is while abs(ans**3-x)>=epsilon: loop when the guesses of x are
Enter integer :27
numguesses= 1
0.0 27 13.5
numguesses= 2
0.0 13.5 13.5

Hey! We 've verified this expert answer for you, click below to unlock the details :)

I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!

What part do you need explained?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

## More answers

Looking for something else?

Not the answer you are looking for? Search for more explanations.