public double optimize(double x,UnivariateFunction f,double tol){
  return optimize(x,f,tol,f.getLowerBound(),f.getUpperBound());
}

public double optimize ( double x , UnivariateFunction f , double tol ) { return optimize ( x , f , tol , f . getLowerBound ( ) , f . getUpperBound ( ) ) ; }
the actual optimization routine ( brent ' s golden section method )
