ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Classes | |
class | Solution |
Functions | |
Solution | solve (RootFunctor const *const f, const G4double x0) |
Numerically solve a one-dimensional equation. | |
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.
View newest version in sPHENIX GitHub at line 118 of file G4INCLRootFinder.cc
References kdfinder::abs(), G4INCL::RootFunctor::cleanUp(), INCL_DEBUG, G4INCL::Math::sign(), x, x1, x2, y, y1, and y2.
Referenced by G4INCL::InteractionAvatar::enforceEnergyConservation(), G4INCL::ParticleEntryChannel::particleEnters(), and G4INCL::INCL::rescaleOutgoingForRecoil().