Import Geant4 8.0.0 source tree
This commit is contained in:
@@ -20,33 +20,51 @@
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
//
|
||||
// $Id: Gamma.hh,v 1.5 2005/10/04 09:08:33 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
//
|
||||
//
|
||||
//---------------------------------------------------------------
|
||||
// GEANT 4 class header file
|
||||
//
|
||||
// Gamma
|
||||
//
|
||||
// Class description:
|
||||
//
|
||||
// Gamma function.
|
||||
|
||||
//---------------------------------------------------------------
|
||||
#ifndef MYGAMMA_H
|
||||
#define MYGAMMA_H
|
||||
|
||||
#include <cmath>
|
||||
|
||||
class MyGamma {
|
||||
public:
|
||||
MyGamma ();
|
||||
~MyGamma();
|
||||
|
||||
double Gamma(double z);
|
||||
double Gamma(double a,double x);
|
||||
private:
|
||||
double GamCf(double a,double x);
|
||||
double GamSer(double a,double x);
|
||||
|
||||
// Abs
|
||||
static short Abs(short d) { return (d > 0) ? d : -d; }
|
||||
static int Abs(int d) { return (d > 0) ? d : -d; }
|
||||
static long Abs(long d) { return (d > 0) ? d : -d; }
|
||||
static float Abs(float d){ return (d > 0) ? d : -d; }
|
||||
static double Abs(double d) { return (d > 0) ? d : -d; }
|
||||
static double LnGamma(double z);
|
||||
static double Log(double x){ return std::log(x); }
|
||||
static double Exp(double x){ return std::exp(x); }
|
||||
|
||||
|
||||
class MyGamma
|
||||
{
|
||||
public:
|
||||
|
||||
MyGamma ();
|
||||
~MyGamma();
|
||||
|
||||
double Gamma(double z);
|
||||
double Gamma(double a,double x);
|
||||
|
||||
private:
|
||||
|
||||
double GamCf(double a,double x);
|
||||
double GamSer(double a,double x);
|
||||
|
||||
// Abs
|
||||
static short Abs(short d) { return (d > 0) ? d : -d; }
|
||||
static int Abs(int d) { return (d > 0) ? d : -d; }
|
||||
static long Abs(long d) { return (d > 0) ? d : -d; }
|
||||
static float Abs(float d) { return (d > 0) ? d : -d; }
|
||||
static double Abs(double d) { return (d > 0) ? d : -d; }
|
||||
static double LnGamma(double z);
|
||||
static double Log(double x) { return std::log(x); }
|
||||
static double Exp(double x) { return std::exp(x); }
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user