Regular Falsi for one-dimensional root-finding.
More...
#include <nonlinear_algebra.h>
List of all members.
Public Member Functions |
|
| RegulaFalsi (Function1< 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
|
Private Attributes |
|
Function1< 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
|
Detailed Description
Regular Falsi for one-dimensional root-finding.
- Author:
- Martin Foerg
- Date:
- 2009-07-10 some comments (Thorsten Schindler)
Member Function Documentation
| double MBSim::RegulaFalsi::solve |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
solve nonlinear root function
- Parameters:
-
The documentation for this class was generated from the following file: