00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef NUMRECIPES_HH
00020 #define NUMRECIPES_HH
00021
00022 #define NUMREC_ITMAX 100
00023 #define NUMREC_EPS 3.0e-7
00024
00025
00026
00027
00028 class NumRecipes {
00029 public:
00030
00031
00032 static double gammln(double x);
00033
00034 static double gammq(double a, double x);
00035
00036 static double gammp(double a, double x);
00037
00038 static void gcf(double* gammcf, double a, double x, double* gln);
00039
00040 static void gser(double* gamser, double a, double x, double* gln);
00041
00042 private:
00043 static void recipesErr(const char* c);
00044 };
00045
00046 #endif