>>530
関数二つだけ書き換える

double f(double x) 
{ 
    return x*x-5; 
} 

double df(double x) 
{ 
    return (f(x+DELTA)-f(x)) / DELTA;
}