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 
8 namespace Genfun {
10 
12 {}
13 
15 }
16 
17 ATan::ATan(const ATan & right)
18 { }
19 
20 
21 double ATan::operator() (double x) const {
22  return atan(x);
23 }
24 
25 
26 
27 Derivative 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