36 complex<double>
cdgamma(complex<double> x);
45 double ellpk(
double x);
51 double expn(
int n,
double x);
63 double igam (
double a,
double x);
64 double igamc (
double a,
double x);
71 void bessel_k0_k1(
double x,
double* k0val,
double* k1val);
78 void bessel_i0_i1(
double x,
double* k0val,
double* k1val);
83 inline void sincos(
double x,
double* s,
double* c)
108 void init_by_array(
unsigned long init_key[],
int key_length);
133 void spline_cubic_set(
long n,
const double t[],
const double y[],
double ypp[],
134 int ibcbeg,
double ybcbeg,
int ibcend,
double ybcend );
135 void spline_cubic_val(
long n,
const double t[],
double tval,
const double y[],
const double ypp[],
136 double *yval,
double *ypval,
double *yppval );
157 int ibcbeg = ( yp1 > 0.99999e30 ) ? 2 : 1;
158 double ybcbeg = ( yp1 > 0.99999e30 ) ? 0. : yp1;
159 int ibcend = ( ypn > 0.99999e30 ) ? 2 : 1;
160 double ybcend = ( ypn > 0.99999e30 ) ? 0. : ypn;
209 const double lo_bound =
MIN2(xa[0],xa[n-1]);
210 const double hi_bound =
MAX2(xa[0],xa[n-1]);
211 const double SAFETY =
MAX2(hi_bound-lo_bound,1.)*10.*DBL_EPSILON;
215 if( x < lo_bound-SAFETY )
218 *lgOutOfBounds =
true;
220 else if( x > hi_bound+SAFETY )
223 *lgOutOfBounds =
true;
228 *lgOutOfBounds =
false;
231 splint(xa,ya,y2a,n,xsafe,y);
249 const double lo_bound =
MIN2(xa[0],xa[n-1]);
250 const double hi_bound =
MAX2(xa[0],xa[n-1]);
251 const double SAFETY =
MAX2(fabs(lo_bound),fabs(hi_bound))*10.*DBL_EPSILON;
255 if( x < lo_bound-SAFETY )
258 *lgOutOfBounds =
true;
260 else if( x > hi_bound+SAFETY )
263 *lgOutOfBounds =
true;
268 *lgOutOfBounds =
false;
271 spldrv(xa,ya,y2a,n,xsafe,y);
295 double linint(
const double x[],
308 long ilo = 0, ihi = n-1;
311 long imid = (ilo+ihi)/2;
345 long ilo = 0, ihi = n-1;
348 long imid = (ilo+ihi)/2;
349 if( xval <= x[imid] )
397 void getrf_wrapper(
long M,
long N,
double *A,
long lda, int32 *ipiv, int32 *info);
410 void getrs_wrapper(
char trans,
long N,
long nrhs,
double *A,
long lda, int32 *ipiv,
double *B,
long ldb, int32 *info);
434 for(
int i=0; i < n; ++i )
447 return erfce(a)/SQRTPI;
451 static const unsigned int NMD5 = 32;
463 void chbfit(
double a,
double b, vector<double>& c,
double (*func)(
double));
465 void svd(
const int nm,
const int m,
const int n,
double *a,
466 double *w,
bool matu,
double *u,
bool matv,
467 double *v,
int *ierr,
double *rv1);
470 double gegenbauer(
long n,
double al,
double x);
499 return ( J1 >= 0 && J2 >= 0 && J3 >= 0 &&
500 J1 >= abs(J2-J3) && J1 <= J2+J3 &&
505 double sjs(
long j1,
long j2,
long j3,
long l1,
long l2,
long l3);
507 double SixJFull(
long j1,
long j2,
long j3,
long j4,
long j5,
long j6);
510 void rec6j(
double *sixcof,
double l2,
double l3,
511 double l4,
double l5,
double l6,
double *l1min,
512 double *l1max,
double *lmatch,
long ndim,
long *ier);
void bessel_i0_i1(double x, double *i0val, double *i1val)
double bessel_k0_scaled(double x)
string MD5datastream(fstream &ioFile)
double bessel_i1_scaled(double x)
void getrs_wrapper(char trans, long N, long nrhs, double *A, long lda, int32 *ipiv, double *B, long ldb, int32 *info)
void chbfit(double a, double b, vector< double > &c, double(*func)(double))
void sincos(double x, double *s, double *c)
void spldrv_safe(const double xa[], const double ya[], const double y2a[], long int n, double x, double *y, bool *lgOutOfBounds)
void svd(const int nm, const int m, const int n, double *a, double *w, bool matu, double *u, bool matv, double *v, int *ierr, double *rv1)
double lfactorial(long n)
double bessel_i1(double x)
double SixJFull(long j1, long j2, long j3, long j4, long j5, long j6)
realnum FastVoigtH(realnum a, realnum v)
void spline_cubic_val(long n, const double t[], double tval, const double y[], const double ypp[], double *yval, double *ypval, double *yppval)
bool Triangle2(long J1, long J2, long J3)
void spline_cubic_set(long n, const double t[], const double y[], double ypp[], int ibcbeg, double ybcbeg, int ibcend, double ybcend)
void spldrv(const double xa[], const double ya[], const double y2a[], long int n, double x, double *y)
long hunt_bisect_reverse(const T x[], long n, T xval)
unsigned long genrand_int32()
string MD5datafile(const char *fnam, access_scheme scheme)
double sjs(long j1, long j2, long j3, long l1, long l2, long l3)
void bessel_i0_i1_scaled(double x, double *i0val, double *i1val)
double expn(int n, double x)
complex< double > cdgamma(complex< double > x)
void splint(const double xa[], const double ya[], const double y2a[], long int n, double x, double *y)
long hunt_bisect(const T x[], long n, T xval)
void bessel_k0_k1(double x, double *k0val, double *k1val)
static const int NPRE_FACTORIAL
void init_by_array(unsigned long init_key[], int key_length)
double bessel_k1(double x)
void spline(const double x[], const double y[], long int n, double yp1, double ypn, double y2a[])
void getrf_wrapper(long M, long N, double *A, long lda, int32 *ipiv, int32 *info)
double bessel_i0_scaled(double x)
double bessel_i0(double x)
double bessel_jn(int n, double x)
void bessel_k0_k1_scaled(double x, double *k0val, double *k1val)
double bessel_y0(double x)
string MD5file(const char *fnam, access_scheme scheme)
double bessel_j0(double x)
double bessel_j1(double x)
double igamc(double a, double x)
bool linfit(long n, const double xorg[], const double yorg[], double &a, double &siga, double &b, double &sigb)
double lagrange(const double x[], const double y[], long n, double xval)
double igam(double a, double x)
static const double SAFETY
double bessel_yn(int n, double x)
double bessel_k1_scaled(double x)
void VoigtU(realnum a, const realnum v[], realnum y[], int n)
#define DEBUG_ENTRY(funcname)
double linint(const double x[], const double y[], long n, double xval)
void humlik(int n, const realnum x[], realnum y, realnum k[])
double bessel_y1(double x)
static const unsigned int NMD5
void splint_safe(const double xa[], const double ya[], const double y2a[], long int n, double x, double *y, bool *lgOutOfBounds)
double e1_scaled(double x)
void rec6j(double *sixcof, double l2, double l3, double l4, double l5, double l6, double *l1min, double *l1max, double *lmatch, long ndim, long *ier)
double igamc_scaled(double a, double x)
void init_genrand(unsigned long s)
UltraGen(long a, double x)
double gegenbauer(long n, double al, double x)
double bessel_k0(double x)
string MD5string(const string &str)
void VoigtH(realnum a, const realnum v[], realnum y[], int n)