C++ main module for emicrom Package  1.0
MATH_P2.h
Go to the documentation of this file.
1 #ifndef MATH_P2_H
2 #define MATH_P2_H
3 
4 
5 #include "MATH_P1.h"
6 
15 
16 class MATH_P2 : public MATH_P1 {
17 
18 
20 
21  // ATTRIBUTES
22 
23 
24 
25 private:
26 public:
27  // METHODS
28 
29  // CONSTRUCTORS
30 
33  MATH_P2(void):MATH_P1(2) {
34  }
35 
36 protected:
40  MATH_P2(const tUIndex& n): MATH_P1(n) {
41  }
42 
43 
44  // DESTRUCTORS
45 public:
46 
49  virtual ~MATH_P2(void) {
50  }
51 
52 
53 public:
54 
55  // CONSTRUCTORS
56 
59  inline static SP::MATH_P2 New() {
60  SP::MATH_P2 ret(new MATH_P2(),
61  MATH_P2::Delete());
62  ret->setThis(ret);
63  return ret;
64  };
69  inline static SP::MATH_P2 New(const tReal a[]) {
70  SP::MATH_P2 p=New();
71  p->setCoefficients(a);
72  return p;
73  };
74 
75 
76 
77 public:
78 
79 
80 
81 
82  // GET methods
83 
84 
85 
86 
87 public:
88 
95  static void CSQRT(const tReal& x,const tReal& y,
96  tReal& a,tReal& b);
97 
102  virtual tUInteger solve(tReal x[]) const;
103 
104 
105 
106 
107 
108 
109 };
110 
111 #endif
static void CSQRT(const tReal &x, const tReal &y, tReal &a, tReal &b)
solve the equation z^2=X where X=x+iy and z=a+ib
Definition: MATH_P2.cpp:7
virtual tUInteger solve(tReal x[]) const
solve the equation P(x)=0.
Definition: MATH_P2.cpp:18
#define tUInteger
Definition: types.h:91
virtual ~MATH_P2(void)
destroy
Definition: MATH_P2.h:49
static SP::MATH_P2 New(const tReal a[])
build sa Polynom of 2-degree with coefficients
Definition: MATH_P2.h:69
SP_OBJECT(MATH_P2)
DEFINE_SPTR(MATH_P2)
static SP::MATH_P2 New()
builds a Polynom of 2-degree
Definition: MATH_P2.h:59
MATH_P2(void)
create of polynom of degree 2
Definition: MATH_P2.h:33
#define tUIndex
Definition: types.h:126
This class describes a polynom of degre 2 .
Definition: MATH_P2.h:16
MATH_P2(const tUIndex &n)
create a polynom of degre n
Definition: MATH_P2.h:40
This class describes a polynom of degre 1.
Definition: MATH_P1.h:15
#define tReal
Definition: types.h:118
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:141