00001 #ifndef POLYGAMMA_H
00002 #define POLYGAMMA_H
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef ZMENVIRONMENT_H
00012 #include "ZMutility/ZMenvironment.h"
00013 #endif
00014 #include <utility>
00015 #include <complex>
00016
00017 ZM_BEGIN_NAMESPACE( zmsf )
00018
00019 typedef std::pair<double,double> Dpair;
00020
00025
00026 struct PolyGamma {
00027
00029 static double DiGamma( const int n );
00030
00032 static Dpair DiGammaErr( const int n );
00033
00035 static double DiGamma( const double x );
00036
00038 static Dpair DiGammaErr( const double x );
00039
00041 static double DiGammaI( const double y );
00042
00044 static Dpair DiGammaIErr( const double y );
00045
00047 static double TriGamma( const int n );
00048
00050 static Dpair TriGammaErr( const int n );
00051
00053 static double PolyGammaN( const int n, const double x );
00054
00056 static Dpair PolyGammaNErr( const int n, const double x );
00057
00058 };
00059
00060 ZM_END_NAMESPACE( zmsf )
00061
00062 #endif