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

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