CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

CLHEP/GenericFunctions/ATan.hh
Go to the documentation of this file.
1 // -*- C++ -*-
2 // $Id: ATan.hh,v 1.2 2003/09/06 14:04:13 boudreau Exp $
3 //---------------------ATan-------------------------------------------------//
4 // //
5 // Class ATan //
6 // Joe Boudreau, Petar Maksimovic, November 1999 //
7 // //
8 //--------------------------------------------------------------------------//
9 #ifndef ATan_h
10 #define ATan_h 1
12 namespace Genfun {
13  class ATan : public AbsFunction {
14 
16 
17  public:
18 
19  // Constructor
20  ATan();
21 
22  // Destructor
23  virtual ~ATan();
24 
25  // Copy constructor
26  ATan(const ATan &right);
27 
28  // Retreive function value
29  virtual double operator ()(double argument) const;
30  virtual double operator ()(const Argument & a) const {return operator() (a[0]);}
31 
32  // Derivative.
33  Derivative partial (unsigned int) const;
34 
35  // Does this function have an analytic derivative?
36  virtual bool hasAnalyticDerivative() const {return true;}
37 
38 
39  private:
40 
41  // It is illegal to assign a ATan
42  const ATan & operator=(const ATan &right);
43 
44  };
45 } // end namespace Genfun
46 
47 #endif