Geant4
9.6.p02
|
#include <G4INCLRootFinder.hh>
Static Public Member Functions | |
static G4bool | solve (RootFunctor const *const f, const G4double x0) |
Numerically solve a one-dimensional equation. More... | |
static std::pair< G4double, G4double > const & | getSolution () |
Get the solution of the last call to solve(). More... | |
Protected Member Functions | |
RootFinder () | |
~RootFinder () | |
Definition at line 64 of file G4INCLRootFinder.hh.
|
inlineprotected |
Definition at line 108 of file G4INCLRootFinder.hh.
|
inlineprotected |
Definition at line 109 of file G4INCLRootFinder.hh.
Get the solution of the last call to solve().
Definition at line 83 of file G4INCLRootFinder.hh.
Numerically solve a one-dimensional equation.
Numerically solves the equation f(x)==0. This implementation uses the false-position method.
If a root is found, it can be retrieved using the getSolution() method,
f | pointer to a RootFunctor |
x0 | initial value of the function argument |
Definition at line 58 of file G4INCLRootFinder.cc.