HG-MD  1
ExtendedMath.h
Go to the documentation of this file.
00001 #ifndef EXTENDEDMATH_H
00002 #define EXTENDEDMATH_H
00003 
00004 #ifdef HIGH_PRECISION
00005         typedef long double Mdouble;
00006 #else 
00007         typedef double Mdouble;
00008 #endif
00009 
00010 
00011 namespace constants
00012 {
00014         const Mdouble pi=3.14159265358979323851280895940618620443274267017841339111328125;
00015         const Mdouble sqrt_pi=1.772453850905516;
00016         
00017         
00018 
00019 }
00020 
00022 namespace mathsFunc
00023 {
00024         
00026         Mdouble gamma(Mdouble gamma_in);
00027         
00029         Mdouble chi_squared(Mdouble x, int k);
00030         
00032         Mdouble chi_squared_prob(Mdouble x,int k);
00033         
00034 }
00035 
00036 
00037 
00038 
00039 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines