CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
Sin.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: Sin.cc,v 1.5 2003/10/10 17:40:39 garren Exp $
3
#include "
CLHEP/GenericFunctions/Sin.hh
"
4
#include "
CLHEP/GenericFunctions/Cos.hh
"
5
#include <assert.h>
6
#include <cmath>
7
8
namespace
Genfun {
9
FUNCTION_OBJECT_IMP
(Sin)
10
11
Sin
::
Sin
()
12
{}
13
14
Sin::~Sin
() {
15
}
16
17
Sin::Sin
(
const
Sin
& right)
18
{ }
19
20
21
double
Sin::operator()
(
double
x)
const
{
22
return
sin(x);
23
}
24
25
26
27
Derivative
Sin::partial
(
unsigned
int
index)
const
{
28
assert(index==0);
29
const
AbsFunction
& fPrime =
Cos
();
30
return
Derivative
(& fPrime);
31
}
32
33
}
// namespace Genfun
Generated on Sun Jun 17 2012 08:08:27 for CLHEP by
1.8.1.1