What does the following algorithm approximate? (Assume m > 1, Î > 0)
x = m;
y - i;
while (x - y > Î)
{
x = (x + y) / 2;
y = m/x ;
}
print (x);
Reveal answer
Fill a bubble to check yourself
What does the following algorithm approximate? (Assume m > 1, Î > 0)
x = m;
y - i;
while (x - y > Î)
{
x = (x + y) / 2;
y = m/x ;
}
print (x);