NAT · 2 marks · Recursion
GATE CS 2014 CS-2 — Q40
Consider the following function
double f(double x){
if( abs(x*x - 3) < 0.01) return x;
else return f(x/2 + 1.5/x);
}Give a value q (to 2 decimals) such that f(q) will return q:_____.
NAT · 2 marks · Recursion
double f(double x){
if( abs(x*x - 3) < 0.01) return x;
else return f(x/2 + 1.5/x);
}