template<class A> class Newton

x_i+1=x_i-gamma*(y_i/y'_i)

Inheritance:


Public Methods

[more] Newton()
[more]virtual ~Newton()
[more]void SetNIterMax(int n)
[more]void SetEpsilon(double e)
[more]void SetDampingFactor(double g)
CAUTION: Threshold depends on absolute value of x
[more]int FindRoot(double &x, A &c)

Protected Methods

[more]virtual double dfdx(double x, A &)
Functions to be redefined when derive thiese classes for real use.
[more]virtual double fx(double x, A &)

Private Fields

[more]double gamma
this function makes one estimation.
[more]double epsilon
damping factor (<=1.
[more]int NIterMax
threshold
[more] Max number of iterations

Private Methods

[more]int FindNextRoot(double &x, A &c)


Documentation

x_i+1=x_i-gamma*(y_i/y'_i)
o Newton()

ovirtual ~Newton()

ovoid SetNIterMax(int n)

ovoid SetEpsilon(double e)

ovoid SetDampingFactor(double g)
CAUTION: Threshold depends on absolute value of x

oint FindRoot(double &x, A &c)

ovirtual double dfdx(double x, A &)
Functions to be redefined when derive thiese classes for real use. If they are not derived, return 0

ovirtual double fx(double x, A &)

oint FindNextRoot(double &x, A &c)

odouble gamma
this function makes one estimation. Returns 0 if OK, 1 if df/dx=0.0

odouble epsilon
damping factor (<=1. if =1, no damping)

oint NIterMax
threshold

o Max number of iterations
Max number of iterations


Direct child classes:
Rotor_NewtonMethod

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.