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

ATan.cc
Go to the documentation of this file.
1// -*- C++ -*-
2// $Id: ATan.cc,v 1.4 2003/10/10 17:40:39 garren Exp $
5#include <assert.h>
6#include <cmath> // for atan()
7
8namespace Genfun {
10
12{}
13
16
17ATan::ATan(const ATan & right) : AbsFunction(right)
18{ }
19
20
21double ATan::operator() (double x) const {
22 return atan(x);
23}
24
25
26
27Derivative ATan::partial(unsigned int index) const {
28 assert(index==0);
29
30 Square square;
31
32 const AbsFunction & fPrime=1.0/(1.0+square);;
33 return Derivative(& fPrime);
34}
35
36} // end namespace Genfun
#define FUNCTION_OBJECT_IMP(classname)
virtual ~ATan()
Definition ATan.cc:14
Derivative partial(unsigned int) const
Definition ATan.cc:27
virtual double operator()(double argument) const
Definition ATan.cc:21