MBSim

Project Page
Public Member Functions | Private Attributes
MBSim::NewtonMethod Class Reference

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

#include <nonlinear_algebra.h>

List of all members.

Public Member Functions

 NewtonMethod (Function< double(double)> *fct_, Function< double(double)> *jac_=0)
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

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

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

solve nonlinear root function

Parameters:
initialvalue

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