File indexing completed on 2025-01-30 10:03:27
0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef Tan_h
0010 #define Tan_h 1
0011 #include "CLHEP/GenericFunctions/AbsFunction.hh"
0012 namespace Genfun {
0013
0014
0015
0016
0017
0018 class Tan : public AbsFunction {
0019
0020 FUNCTION_OBJECT_DEF(Tan)
0021
0022 public:
0023
0024
0025 Tan();
0026
0027
0028 virtual ~Tan();
0029
0030
0031 Tan(const Tan &right);
0032
0033
0034 virtual double operator ()(double argument) const override;
0035 virtual double operator ()(const Argument & a) const override {return operator() (a[0]);}
0036
0037
0038 Derivative partial (unsigned int) const override;
0039
0040
0041 virtual bool hasAnalyticDerivative() const override {return true;}
0042
0043
0044 private:
0045
0046
0047 const Tan & operator=(const Tan &right);
0048
0049 };
0050 }
0051
0052 #endif