CLHEP VERSION Reference Documentation
   
CLHEP Home Page     CLHEP Documentation     CLHEP Bug Reports

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 $
4 #include <assert.h>
5 #include <cmath> // for exp()
6 
7 namespace Genfun {
9 
10 Exp::Exp()
11 {}
12 
13 Exp::Exp(const Exp & right) : AbsFunction(right)
14 {}
15 
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
#define FUNCTION_OBJECT_IMP(classname)
virtual double operator()(double argument) const
Definition: Exp.cc:19
Derivative partial(unsigned int) const
Definition: Exp.cc:24
Exp()
Definition: Exp.cc:10
virtual ~Exp()
Definition: Exp.cc:16