CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
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 $
3
#include "
CLHEP/GenericFunctions/ATan.hh
"
4
#include "
CLHEP/GenericFunctions/Square.hh
"
5
#include <assert.h>
6
#include <cmath>
// for atan()
7
8
namespace
Genfun {
9
FUNCTION_OBJECT_IMP
(ATan)
10
11
ATan
::
ATan
()
12
{}
13
14
ATan::~ATan
() {
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
Generated on Sun Jun 17 2012 08:08:26 for CLHEP by
1.8.1.1