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