CLHEP 2.4.6.4
C++ Class Library for High Energy Physics
Loading...
Searching...
No Matches
Genfun::ACos Class Reference

#include <ACos.hh>

+ Inheritance diagram for Genfun::ACos:

Public Member Functions

 ACos ()
 
virtual ~ACos ()
 
 ACos (const ACos &right)
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) const override
 
Derivative partial (unsigned int) const override
 
virtual bool hasAnalyticDerivative () const override
 
- Public Member Functions inherited from Genfun::AbsFunction
 AbsFunction ()
 
 AbsFunction (const AbsFunction &right)
 
virtual ~AbsFunction ()
 
virtual unsigned int dimensionality () const
 
virtual double operator() (double argument) const =0
 
virtual double operator() (const Argument &argument) const =0
 
virtual AbsFunctionclone () const =0
 
virtual FunctionComposition operator() (const AbsFunction &f) const
 
virtual ParameterComposition operator() (const AbsParameter &p) const
 
Derivative derivative (const Variable &v) const
 
Derivative prime () const
 
virtual bool hasAnalyticDerivative () const
 
virtual Derivative partial (unsigned int) const
 

Detailed Description

Definition at line 15 of file ACos.hh.

Constructor & Destructor Documentation

◆ ACos() [1/2]

Genfun::ACos::ACos ( )

Definition at line 12 of file ACos.cc.

13{}

◆ ~ACos()

Genfun::ACos::~ACos ( )
virtual

Definition at line 15 of file ACos.cc.

15 {
16}

◆ ACos() [2/2]

Genfun::ACos::ACos ( const ACos right)

Definition at line 18 of file ACos.cc.

18 : AbsFunction(right)
19{ }

Member Function Documentation

◆ hasAnalyticDerivative()

virtual bool Genfun::ACos::hasAnalyticDerivative ( ) const
inlineoverridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 38 of file ACos.hh.

38{return true;}

◆ operator()() [1/2]

virtual double Genfun::ACos::operator() ( const Argument a) const
inlineoverridevirtual

Implements Genfun::AbsFunction.

Definition at line 32 of file ACos.hh.

32{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: ACos.cc:22

◆ operator()() [2/2]

double Genfun::ACos::operator() ( double  argument) const
overridevirtual

Implements Genfun::AbsFunction.

Definition at line 22 of file ACos.cc.

22 {
23 return acos(x);
24}

Referenced by operator()().

◆ partial()

Derivative Genfun::ACos::partial ( unsigned int  index) const
overridevirtual

Reimplemented from Genfun::AbsFunction.

Definition at line 37 of file ACos.cc.

37 {
38 assert(index==0);
39
40 Square square;
41 Sqrt root;
42
43 const AbsFunction & fPrime = - 1.0/root(1.0-square) ;
44 return Derivative(& fPrime);
45}
FunctionNoop Derivative
Definition: AbsFunction.hh:42

The documentation for this class was generated from the following files: