C++ main module for emicrom Package  1.0
MATH_P3.h
Go to the documentation of this file.
1 #ifndef MATH_P3_H
2 #define MATH_P3_H
3 
4 
5 #include "MATH_P2.h"
6 
15 
16 class MATH_P3 : public MATH_P2 {
17 
18 
20 
21  // ATTRIBUTES
22 
23 
24 
25 private:
26 
27 public:
28  // METHODS
29 
30  // CONSTRUCTORS
31 
34  MATH_P3(void):MATH_P2(3) {
35  }
36 
37 protected:
42  MATH_P3(const tUIndex& n): MATH_P2(n) {
43  }
44 
45 
46 
47  // DESTRUCTORS
48 
49 public:
52  virtual ~MATH_P3(void) {
53  }
54 
55 
56 public:
57 
58  // CONSTRUCTORS
59 
62  inline static SP::MATH_P3 New() {
63  SP::MATH_P3 ret(new MATH_P3(),
64  MATH_P3::Delete());
65  ret->setThis(ret);
66  return ret;
67  };
72  inline static SP::MATH_P3 New(const tReal a[]) {
73  SP::MATH_P3 p=New();
74  p->setCoefficients(a);
75  return p;
76  };
77 
78 
79 
80 public:
81 
82 
83 
84 
85  // GET methods
86 
87 
88 
89 public:
90  // OTHERS methods
91 
92 
93 
109  virtual tUInteger solve(tReal x[]) const;
110 
111 
112 
113 
114 
115 };
116 
117 #endif
static SP::MATH_P3 New(const tReal a[])
builds a Polynome of 3-degree with coefficients
Definition: MATH_P3.h:72
#define tUInteger
Definition: types.h:91
This class describes a polynom of degre 3 : .
Definition: MATH_P3.h:16
MATH_P3(void)
createa polynom of degre 3
Definition: MATH_P3.h:34
virtual ~MATH_P3(void)
destroy
Definition: MATH_P3.h:52
SP_OBJECT(MATH_P3)
virtual tUInteger solve(tReal x[]) const
solve the equation P(x)=0.
Definition: MATH_P3.cpp:7
#define tUIndex
Definition: types.h:126
MATH_P3(const tUIndex &n)
create a polynom of degre n
Definition: MATH_P3.h:42
This class describes a polynom of degre 2 .
Definition: MATH_P2.h:16
DEFINE_SPTR(MATH_P3)
#define tReal
Definition: types.h:118
static SP::MATH_P3 New()
builds a Polynom of 3-degree
Definition: MATH_P3.h:62
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141