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

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 $
5 #include <cmath>
6 
7 namespace Genfun {
9 
10 Cos::Cos()
11 {}
12 
14 }
15 
16 Cos::Cos(const Cos & right)
17 { }
18 
19 
20 double Cos::operator() (double x) const {
21  return cos(x);
22 }
23 
24 
25 Derivative Cos::partial(unsigned int index) const {
26  const AbsFunction & fPrime = -Sin();
27  return Derivative(& fPrime);
28 }
29 
30 
31 } // namespace Genfun