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

#include <LogGamma.hh>

+ Inheritance diagram for Genfun::LogGamma:

Public Member Functions

 LogGamma ()
 
 LogGamma (const LogGamma &right)
 
virtual ~LogGamma ()
 
virtual double operator() (double argument) const override
 
virtual double operator() (const Argument &a) 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

Author

Definition at line 19 of file LogGamma.hh.

Constructor & Destructor Documentation

◆ LogGamma() [1/2]

Genfun::LogGamma::LogGamma ( )

Definition at line 19 of file LogGamma.cc.

20{}

◆ LogGamma() [2/2]

Genfun::LogGamma::LogGamma ( const LogGamma right)

Definition at line 22 of file LogGamma.cc.

22 : AbsFunction(right)
23{}

◆ ~LogGamma()

Genfun::LogGamma::~LogGamma ( )
virtual

Definition at line 25 of file LogGamma.cc.

25 {
26}

Member Function Documentation

◆ operator()() [1/2]

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

Implements Genfun::AbsFunction.

Definition at line 36 of file LogGamma.hh.

36{return operator() (a[0]);}
virtual double operator()(double argument) const override
Definition: LogGamma.cc:28

◆ operator()() [2/2]

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

Implements Genfun::AbsFunction.

Definition at line 28 of file LogGamma.cc.

28 {
29 double y=x,tmp=x+5.5,ser=1.000000000190015,c=2.5066282746310005;
30 tmp -= (x+0.5)*log(tmp);
31 for (int j=0;j<6;j++) ser += _coefficient[j]/++y;
32 return -tmp+log(c*ser/x);
33}

Referenced by operator()().


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