GeoModel - GeoModelCore
ATan.h
1 //==========================================================================//
2 // Imported from the QAT library (qat.pitt.edu) by the copyright holder //
3 // Joe Boudreau. Software licensed under the terms and conditions of the //
4 // GNU Lesser Public License v3. //
5 //==========================================================================//
6 //----------------------ATan--------- --------------------------------------//
7 // //
8 // Class ATan //
9 // //
10 //--------------------------------------------------------------------------//
11 
12 #ifndef ATan_h
13 #define ATan_h 1
14 
15 #include "GeoGenericFunctions/AbsFunction.h"
16 
17 namespace GeoGenfun {
18  class ATan : public AbsFunction {
19 
20  FUNCTION_OBJECT_DEF(ATan)
21 
22  public:
23 
24  // Constructor
25  ATan();
26 
27  // Destructor
28  virtual ~ATan();
29 
30  // Copy constructor
31  ATan(const ATan &right);
32 
33  // Retreive function value
34  virtual double operator ()(double argument) const override;
35  virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
36 
37  // Derivative.
38  Derivative partial (unsigned int) const override;
39 
40  // Does this function have an analytic derivative?
41  virtual bool hasAnalyticDerivative() const override {return true;}
42 
43 
44  private:
45 
46  // It is illegal to assign a ATan
47  const ATan & operator=(const ATan &right);
48 
49  };
50 } // end namespace Genfun
51 
52 #endif
Definition: Abs.h:15