Skip to content

Beta · Data may be lost.Your data may be reset or lost.

GateBrew
← GATE CSE 2014 Set 2
Questions

Q40

NAT2 marksProgrammingMedium

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 qq (to 22 decimals) such that f(q)f(q) will return qq:_____.

Sign in to save attempts.

The solution is hidden while you attempt this question. It opens once you check or show the answer.