Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
|
Classes | |
class | Solution |
Functions | |
Solution | solve (RootFunctor const *const f, const G4double x0) |
Numerically solve a one-dimensional equation. | |
Solution G4INCL::RootFinder::solve | ( | RootFunctor const *const | f, |
const G4double | x0 | ||
) |
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 118 of file G4INCLRootFinder.cc.
Referenced by G4INCL::InteractionAvatar::enforceEnergyConservation().