UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
u3d_nl_eqsolve.hpp
1 // u3d_nl_eqsolve.hpp
2 // $Id: u3d_nl_eqsolve.hpp,v 1.3 2007/06/27 15:48:32 guser1 Exp $
3 
6 {
7 public:
10 
12  virtual double calc(double x) = 0;
13 };
14 
15 //------------------------------------------------------------------------------------------
18 {
19 public:
22 
24  virtual void solve(U3dEqAbstractFunction* func) = 0;
25 
27  virtual double getRoot()
28  {return cur_root;}
29 
31  virtual double getFunc()
32  {return cur_func;}
33 
34 protected:
35 
37  double cur_root;
38 
40  double cur_func;
41 
42  static int num_eq_solve;
43 };
44 
45 //------------------------------------------------------------------------------------------
48 {
49 public:
53 
55  void solve(U3dEqAbstractFunction* func);
56 
58  void setRanges(double zmn, double zmx)
59  {zmin = zmn; zmax = zmx;}
60 
62  void setMaxItersNum(int n)
63  {itn_max = n;}
64 
65 protected:
67  int itn_max;
68 
70  double zmin, zmax;
71 };
virtual double getFunc()
Definition: u3d_nl_eqsolve.hpp:31
int itn_max
Definition: u3d_nl_eqsolve.hpp:67
double cur_root
Definition: u3d_nl_eqsolve.hpp:37
virtual void solve(U3dEqAbstractFunction *func)=0
virtual double getRoot()
Definition: u3d_nl_eqsolve.hpp:27
void setRanges(double zmn, double zmx)
Definition: u3d_nl_eqsolve.hpp:58
double zmin
Definition: u3d_nl_eqsolve.hpp:70
void solve(U3dEqAbstractFunction *func)
void setMaxItersNum(int n)
Definition: u3d_nl_eqsolve.hpp:62
virtual double calc(double x)=0
Definition: u3d_nl_eqsolve.hpp:47
Definition: u3d_nl_eqsolve.hpp:5
double cur_func
Definition: u3d_nl_eqsolve.hpp:40
Definition: u3d_nl_eqsolve.hpp:17