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
7namespace Genfun {
9
11{}
12
13Exp::Exp(const Exp & right) : AbsFunction(right)
14{}
15
17}
18
19double Exp::operator() (double x) const {
20 return exp(x);
21}
22
23
24Derivative 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
virtual ~Exp()
Definition Exp.cc:16