CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
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
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2