#ifndef ROOT_Math_ModBrentMethods #define ROOT_Math_ModBrentMethods #ifndef ROOT_Math_IFunctionfwd #include "Math/IFunctionfwd.h" #endif namespace ModBrentMethods { int BracketStep(const ROOT::Math::IGenFunction* f, double &xmin, double &xmax, double fy, int &niter, int npx = 20, double epsabs = 1.E-8, double epsrel = 1.E-10, int maxIter = 100, bool useLog = false); double GridBracketStep(const ROOT::Math::IGenFunction* f, double &xmin, double &xmax, double fy, int npx = 100, bool useLog = false); double BrentMethod(const ROOT::Math::IGenFunction* f, double &xmin, double &xmax, double fy, bool &ok, int &niter, double epsabs = 1.E-8, double epsrel = 1.E-10, int itermax = 100); double MinimStep(const ROOT::Math::IGenFunction* f, int type, double &xmin, double &xmax, double fy, int npx = 100, bool useLog = false); double MinimBrent(const ROOT::Math::IGenFunction* f, int type, double &xmin, double &xmax, double xmiddle, double fy, bool &ok, int &niter, double epsabs = 1.E-8, double epsrel = 1.E-10, int maxiter = 100 ); } #endif