Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

gamma.h File Reference

Go to the source code of this file.

Functions

double LnGamma (double z)
 \file Gamma function extracted from ROOT. More...

double Gamma (double a, double x)
double GamCf (double a,double x)
double GamSer (double a,double x)


Detailed Description

Definition of the various functions useful to compute the gamma function

Definition in file gamma.h.


Function Documentation

double GamCf ( double a,
double x )
 

Computation of the incomplete gamma function P(a,x) via its continued fraction representation.

The algorithm is based on the formulas and code as denoted in Numerical Recipes 2nd ed. on p. 210-212 (W.H.Press et al.).

--- Nve 14-nov-1998 UU-SAP Utrecht

Definition at line 80 of file gamma.cxx.

Referenced by Gamma().

double GamSer ( double a,
double x )
 

Computation of the incomplete gamma function P(a,x) via its series representation.

The algorithm is based on the formulas and code as denoted in Numerical Recipes 2nd ed. on p. 210-212 (W.H.Press et al.).

--- Nve 14-nov-1998 UU-SAP Utrecht

Definition at line 124 of file gamma.cxx.

Referenced by Gamma().

double Gamma ( double a,
double x )
 

Computation of the incomplete gamma function P(a,x)

The algorithm is based on the formulas and code as denoted in Numerical Recipes 2nd ed. on p. 210-212 (W.H.Press et al.).

--- Nve 14-nov-1998 UU-SAP Utrecht

Definition at line 60 of file gamma.cxx.

Referenced by CalClustersAlgFactory().

double LnGamma ( double z )
 

\file Gamma function extracted from ROOT.

Computation of ln[gamma(z)] for all z>0.

The algorithm is based on the article by C.Lanczos [1] as denoted in Numerical Recipes 2nd ed. on p. 207 (W.H.Press et al.).

[1] C.Lanczos, SIAM Journal of Numerical Analysis B1 (1964), 86.

The accuracy of the result is better than 2e-10.

--- Nve 14-nov-1998 UU-SAP Utrecht

Definition at line 25 of file gamma.cxx.

Referenced by GamCf(), and GamSer().


Generated at Wed Nov 21 12:21:05 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000