CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Cos.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: Cos.cc,v 1.5 2003/10/10 17:40:39 garren Exp $
3#include "CLHEP/GenericFunctions/Cos.hh"
4#include "CLHEP/GenericFunctions/Sin.hh"
5#include <cmath>
6
7namespace Genfun {
9
11{}
12
14}
15
16Cos::Cos(const Cos & right) : AbsFunction(right)
17{ }
18
19
20double Cos::operator() (double x) const {
21 return cos(x);
22}
23
24
25Derivative Cos::partial(unsigned int) const {
26 const AbsFunction & fPrime = -Sin();
27 return Derivative(& fPrime);
28}
29
30
31} // namespace Genfun
#define FUNCTION_OBJECT_IMP(classname)
Definition: AbsFunction.hh:149
virtual double operator()(double argument) const override
Definition: Cos.cc:20
Derivative partial(unsigned int) const override
Definition: Cos.cc:25
virtual ~Cos()
Definition: Cos.cc:13
Cos()
Definition: Cos.cc:10
Definition: Abs.hh:14
FunctionNoop Derivative
Definition: AbsFunction.hh:42