|
mbsim
4.0.0
MBSim Kernel
|
Regular Falsi for one-dimensional root-finding. More...
#include <nonlinear_algebra.h>
Public Member Functions | |
| RegulaFalsi (Function< double(double)> *f) | |
| int | getNumberOfIterations () const |
| int | getInfo () const |
| void | setMaximumNumberOfIterations (int itmax_) |
| void | setTolerance (double tol_) |
| double | solve (double a, double b) |
| solve nonlinear root function More... | |
Private Attributes | |
| Function< double(double)> * | func |
| root function | |
| int | itmax |
| maximum number of iterations, actual number of iterations, information about success (0 = ok, -1 = not converged, -2 = no root) | |
| int | it |
| int | info |
| double | tol |
| tolerance | |
Regular Falsi for one-dimensional root-finding.
| double MBSim::RegulaFalsi::solve | ( | double | a, |
| double | b | ||
| ) |
solve nonlinear root function
| left | border |
| right | border |