275 views
1 votes
1 votes

What does the following algorithm approximate? (Assume m>1,ϵ>0m>1,ϵ>0).

x = m;
y = 1;
While (x-y > ϵ)
{
    x = (x+y)/2;
    y = m/x;
}
print(x);
  1. logm
  2. m2
  3. m1/2
  4. m1/3

Can i get a reason of why it cannot be log m ?

when finding by substituting values

Please log in or register to answer this question.

No related questions found