double Sqrt_iter(double guess,double x)
{

    if(good_enough(guess,x)) return guess;
        else{
            printf("cccc\n");
            return Sqrt_iter(improve(guess,x),x);
        }
}
Пример #2
0
double square_root(double guess, double x)
{
	while(good_enough(guess, x)==0)
		guess = improve(guess, x);
	return guess;
};