CLHEP
2.4.6.4
C++ Class Library for High Energy Physics
Toggle main menu visibility
Main Page
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
m
n
o
p
q
r
s
t
v
w
z
Functions
b
c
d
e
f
g
h
i
m
n
o
p
q
r
s
t
v
z
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
u
v
w
x
y
z
Typedefs
Enumerations
Enumerator
a
b
c
e
f
i
j
m
n
o
r
s
t
u
v
w
x
y
z
Related Functions
b
c
d
h
i
o
p
q
r
s
t
v
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
z
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
Variables
m
n
q
r
t
Typedefs
Enumerator
Macros
_
a
c
d
e
f
h
m
n
p
r
s
t
v
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Loading...
Searching...
No Matches
Cos.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
// $Id: Cos.cc,v 1.5 2003/10/10 17:40:39 garren Exp $
3
#include "CLHEP/GenericFunctions/Cos.hh"
4
#include "CLHEP/GenericFunctions/Sin.hh"
5
#include <cmath>
6
7
namespace
Genfun
{
8
FUNCTION_OBJECT_IMP
(Cos)
9
10
Cos
::
Cos
()
11
{}
12
13
Cos::~Cos
() {
14
}
15
16
Cos::Cos
(
const
Cos
& right) :
AbsFunction
(right)
17
{ }
18
19
20
double
Cos::operator()
(
double
x)
const
{
21
return
cos(x);
22
}
23
24
25
Derivative
Cos::partial
(
unsigned
int
)
const
{
26
const
AbsFunction
& fPrime = -
Sin
();
27
return
Derivative
(& fPrime);
28
}
29
30
31
}
// namespace Genfun
FUNCTION_OBJECT_IMP
#define FUNCTION_OBJECT_IMP(classname)
Definition:
AbsFunction.hh:149
Genfun::AbsFunction
Definition:
AbsFunction.hh:48
Genfun::Cos
Definition:
Cos.hh:19
Genfun::Cos::operator()
virtual double operator()(double argument) const override
Definition:
Cos.cc:20
Genfun::Cos::partial
Derivative partial(unsigned int) const override
Definition:
Cos.cc:25
Genfun::Cos::~Cos
virtual ~Cos()
Definition:
Cos.cc:13
Genfun::Cos::Cos
Cos()
Definition:
Cos.cc:10
Genfun::FunctionNoop
Definition:
FunctionNoop.hh:19
Genfun::Sin
Definition:
Sin.hh:18
Genfun
Definition:
Abs.hh:14
Genfun::Derivative
FunctionNoop Derivative
Definition:
AbsFunction.hh:42
CLHEP-CLHEP_2_4_6_4
GenericFunctions
src
Cos.cc
Generated by
1.9.6