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