static double fd(double x){
  return x * Math.cos(x) + 2 * Math.sin(x) - 5;
}

static double fd ( double x ) { return x * Math . cos ( x ) + 2 * Math . sin ( x ) - 5 ; }
the derivative of the function whose roots are to be computed .
