mbsim  4.0.0
MBSim Kernel
MBSim::NewtonMethod Class Reference

Newton method for one-dimensional root-finding. More...

#include <nonlinear_algebra.h>

Public Member Functions

 NewtonMethod (Function< double(double)> *fct_, Function< double(double)> *jac_=nullptr)
 
int getNumberOfIterations () const
 
int getInfo () const
 
void setMaximumNumberOfIterations (int itmax_)
 
void setMaximumDampingSteps (int kmax_)
 
void setTolerance (double tol_)
 
double solve (const double &x)
 solve nonlinear root function More...
 

Private Attributes

Function< double(double)> * fct
 root function
 
Function< double(double)> * jac
 Jacobian matrix.
 
int itmax
 maximum number of iterations, actual number of iterations, maximum number of damping steps, information about success
 
int iter
 
int kmax
 
int info
 
double tol
 tolerance
 

Detailed Description

Newton method for one-dimensional root-finding.

Author
Martin Foerg
Date
2009-07-10 some comments (Thorsten Schindler)

Member Function Documentation

◆ solve()

double MBSim::NewtonMethod::solve ( const double &  x)

solve nonlinear root function

Parameters
initialvalue

The documentation for this class was generated from the following files: