GeoModel - GeoModelCore
ACos.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 //---------------------ACos-------------------------------------------------//
7 // //
8 // Class ACos (arc cos) //
9 // //
10 //--------------------------------------------------------------------------//
11 #ifndef ACos_h
12 #define ACos_h 1
13 
14 #include "GeoGenericFunctions/AbsFunction.h"
15 
16 namespace GeoGenfun {
17 
18  class ACos : public AbsFunction {
19 
20  FUNCTION_OBJECT_DEF(ACos)
21 
22  public:
23 
24  // Constructor
25  ACos();
26 
27  // Destructor
28  virtual ~ACos();
29 
30  // Copy constructor
31  ACos(const ACos &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  virtual 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  private:
44 
45  // It is illegal to assign a ACosine
46  const ACos & operator=(const ACos &right);
47 
48  };
49 
50 } // end namespace GeoGenfun
51 
52 #endif
Definition: Abs.h:15