Celeritas
0.5.0-86+4a8eea4
|
Perform Regula Falsi (see RegulaFalsi for more details) iterations given a root function func and tolerance tol using the Illinois method. More...
#include <IllinoisRootFinder.hh>
Public Member Functions | |
CELER_FUNCTION | IllinoisRootFinder (F &&func, real_type tol) |
Construct from function. | |
CELER_FUNCTION real_type | operator() (real_type left, real_type right) |
Solve for a root between the two points. More... | |
Perform Regula Falsi (see RegulaFalsi for more details) iterations given a root function func and tolerance tol using the Illinois method.
Illinois method modifies the standard approach by comparing the sign of func(root) approximation in the current iteration with the previous approximation. If both iterations are on the same side then the func at the bound on the other side is halved.
|
inline |
Solve for a root between the two points.
Enum defining side of aproximated root to true root