C++ main module for gpm Package  1.0
MATH_ACOSFunction.h
Go to the documentation of this file.
1 #ifndef MATH_ACOSFunction_H
2 #define MATH_ACOSFunction_H
3 
5 
15  SP_OBJECT(MATH_ACOSFunction);
16 
17  // ATTRIBUTES
18 
19 
20 protected:
21  // METHODS
22 
23  // CONSTRUCTORS
24 
28  setSymbol("acos");
29  }
30 
31 
32 
33  // DESTRUCTORS
34 
35 
38  virtual ~MATH_ACOSFunction(void) {
39  }
40 
41 
42 private:
43 
44 public:
47  static inline SP::MATH_ACOSFunction New() {
48  SP::MATH_ACOSFunction p(new MATH_ACOSFunction(),MATH_ACOSFunction::Delete());
49  p->setThis(p);
50  return p;
51  }
52 
55  virtual SP::MATH_FunctionNode newInstance() const {
56  return New();
57  }
58 
59 
60  // SET methods
61 
62 
63  // GET methods
64 
65 
66 public:
67  // OTHERS methods
68 
71  virtual double computeFunction(const double* values,const int& n) const {
72  return acos(values[0]);
73  }
74 
75 };
76 
77 #endif
DEFINE_SPTR(MATH_ACOSFunction)
This class decribes a numerical function.
Definition: MATH_NumericalFunction.h:14
virtual double computeFunction(const double *values, const int &n) const
compute the function
Definition: MATH_ACOSFunction.h:71
virtual ~MATH_ACOSFunction(void)
destroy
Definition: MATH_ACOSFunction.h:38
MATH_ACOSFunction(void)
create
Definition: MATH_ACOSFunction.h:27
This class decribes a acos function.
Definition: MATH_ACOSFunction.h:14
static SP::MATH_ACOSFunction New()
create a node expression
Definition: MATH_ACOSFunction.h:47
void setSymbol(const tString &tag)
set the symbol
Definition: MATH_LeafExpression.h:86
virtual SP::MATH_FunctionNode newInstance() const
create a node expression
Definition: MATH_ACOSFunction.h:55
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106