35#define INCLXX_IN_GEANT4_MODE 1
48#ifndef G4INCLROOTFINDER_HH_
49#define G4INCLROOTFINDER_HH_
85 static std::pair<G4double,G4double>
const &
getSolution() {
return RootFinder::solution; }
89 static std::pair<G4double,G4double> solution;
101 static std::pair<G4double,G4double> bracketRoot(
RootFunctor const *
const f,
const G4double x0);
104 static const G4int maxIterations=50;
Functor for 1-dimensional mathematical functions.
static std::pair< G4double, G4double > const & getSolution()
Get the solution of the last call to solve().
static G4bool solve(RootFunctor const *const f, const G4double x0)
Numerically solve a one-dimensional equation.
virtual void cleanUp(const G4bool success) const =0
RootFunctor(const G4double x0, const G4double x1)