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
7
namespace
Genfun
{
8
FUNCTION_OBJECT_IMP
(Cos)
9
10
Cos
::
Cos
()
11
{}
12
13
Cos::~Cos
() {
14
}
15
16
Cos::Cos
(
const
Cos
& right) :
AbsFunction
(right)
17
{ }
18
19
20
double
Cos::operator()
(
double
x)
const
{
21
return
cos(x);
22
}
23
24
25
Derivative
Cos::partial
(
unsigned
int
)
const
{
26
const
AbsFunction
& fPrime = -
Sin
();
27
return
Derivative
(& fPrime);
28
}
29
30
31
}
// namespace Genfun
FUNCTION_OBJECT_IMP
#define FUNCTION_OBJECT_IMP(classname)
Definition:
AbsFunction.hh:149
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Cos
Definition:
Cos.hh:19
Genfun::Cos::operator()
virtual double operator()(double argument) const override
Definition:
Cos.cc:20
Genfun::Cos::partial
Derivative partial(unsigned int) const override
Definition:
Cos.cc:25
Genfun::Cos::~Cos
virtual ~Cos()
Definition:
Cos.cc:13
Genfun::Cos::Cos
Cos()
Definition:
Cos.cc:10
Genfun::FunctionNoop
Definition:
FunctionNoop.hh:19
Genfun::Sin
Definition:
Sin.hh:18
Genfun
Definition:
Abs.hh:14
Genfun::Derivative
FunctionNoop Derivative
Definition:
AbsFunction.hh:42
CLHEP-CLHEP_2_4_6_4
GenericFunctions
src
Cos.cc
Generated by
1.9.6