CLHEP VERSION Reference Documentation
CLHEP Home Page
CLHEP Documentation
CLHEP Bug Reports
Main Page
Namespaces
Classes
Files
File List
File Members
GenericFunctions
src
ASin.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: ASin.cc,v 1.4 2003/10/10 17:40:39 garren Exp $
3
#include "
CLHEP/GenericFunctions/ASin.hh
"
4
#include "
CLHEP/GenericFunctions/Sqrt.hh
"
5
#include "
CLHEP/GenericFunctions/Square.hh
"
6
#include <assert.h>
7
#include <cmath>
// for asin()
8
9
namespace
Genfun {
10
FUNCTION_OBJECT_IMP
(ASin)
11
12
ASin
::
ASin
()
13
{}
14
15
ASin::~ASin
() {
16
}
17
18
ASin::ASin
(
const
ASin
& right) :
AbsFunction
(right)
19
{ }
20
21
22
double
ASin::operator()
(
double
x)
const
{
23
return
asin(x);
24
}
25
26
27
28
Derivative
ASin::partial
(
unsigned
int
index)
const
{
29
assert(index==0);
30
31
Square
square;
32
Sqrt
root;
33
34
const
AbsFunction
& fPrime = 1.0/root(1.0-square) ;
35
return
Derivative
(& fPrime);
36
}
37
38
}
// end namespace Genfun
Generated on Mon May 6 2013 04:04:10 for CLHEP by
1.8.1.2