1 #ifndef MATH_NewtonEquation_H
2 #define MATH_NewtonEquation_H
64 static SP::MATH_NewtonEquation
New() {
146 tReal x=solveNewton(x0,error,iter);
MATH_NewtonEquation(void)
create a NewtonEquation object
Definition: MATH_NewtonEquation.cpp:5
virtual tReal solve()
solve
Definition: MATH_NewtonEquation.cpp:38
This class describes a function of classe C1.
Definition: MATH_C1Function.h:17
virtual tBoolean hasSucceeded() const
return true if the method has succeeded
Definition: MATH_Equation.h:225
void setStep(const tReal &dx)
set the step
Definition: MATH_NewtonEquation.h:119
DEFINE_SVPTR(MATH_NewtonEquation)
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: MATH_NewtonEquation.cpp:22
virtual tString toString() const
to string
Definition: MATH_NewtonEquation.cpp:34
void setConstraints(const tReal &minX, const tReal &maxX)
set the min & max constraints
Definition: MATH_NewtonEquation.h:106
This class describes the main interface class for a soft user interface (R,matlab,python etc...) class.
Definition: UI_Class.h:38
#define tBoolean
Definition: types.h:48
virtual ~MATH_NewtonEquation(void)
destroy an NewtonEquation Object.
Definition: MATH_NewtonEquation.cpp:16
This class solve the equation f(x)=0.
Definition: MATH_NewtonEquation.h:21
#define null
Definition: types.h:13
tReal getError() const
get the error estimated with the solution
Definition: MATH_Equation.h:155
const MATH_Function * getFunction() const
get the function
Definition: MATH_Equation.h:195
virtual void copy(const MATH_Equation *m)
copy the parameters of the optimization method
Definition: MATH_NewtonEquation.cpp:30
This class solve the equation f(x)=0.
Definition: MATH_Equation.h:21
virtual tBoolean hasFunction() const
return true if the optimized method has function
Definition: MATH_NewtonEquation.h:159
void setSolution(const tReal &x)
set the solution
Definition: MATH_Equation.h:172
void setError(const tReal &err)
set the error estimated with the solution
Definition: MATH_Equation.h:182
virtual tReal solve(const tReal &x0)
solve
Definition: MATH_NewtonEquation.h:143
#define tString
Definition: types.h:49
void setIterationsNumber(const int &n)
set the iterations number to reach the solution
Definition: MATH_Equation.h:177
static SP::MATH_NewtonEquation New()
create a copy of MATH_NewtonEquation
Definition: MATH_NewtonEquation.h:64
void getConstraints(tReal &minX, tReal &maxX) const
get the min & max constraints
Definition: MATH_NewtonEquation.h:112
virtual void setInterval(const tReal &a, const tReal &b)
set the interval of searching
Definition: MATH_NewtonEquation.h:99
virtual tBoolean hasSucceeded() const
return true if the method has succeeded
Definition: MATH_NewtonEquation.h:165
virtual void setInterval(const tReal &a, const tReal &b)
set the interval of searching
Definition: MATH_Equation.h:122
#define tReal
Definition: types.h:18
tReal getMaxError() const
get the wished max error
Definition: MATH_Equation.h:165
DEFINE_SPTR(MATH_NewtonEquation)
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: MATH_NewtonEquation.cpp:26