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