s2let  2.2.0
Fast wavelets on the sphere
s2let_math.h
Go to the documentation of this file.
1 // S2LET package
2 // Copyright (C) 2012
3 // Boris Leistedt & Jason McEwen
4 
5 #ifndef S2LET_MATH
6 #define S2LET_MATH
7 #include <ssht/ssht.h>
8 
9 #define PI 3.141592653589793238462643383279502884197
10 
11 #define MIN(a, b) ((a) < (b) ? (a) : (b))
12 #define MAX(a, b) ((a) > (b) ? (a) : (b))
13 #define ABS(a) ((a) > (0.0) ? (a) : (-(a)))
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 double s2let_math_kappa0_quadtrap_s2dw(double a, double b, int n, double B);
20 
21 double s2let_math_kappa0_quadtrap_needlet(double a, double b, int n);
22 
23 double s2let_math_spline_scalingfct(double x, double y);
24 
25 double ran2_dp(int idum);
26 
27 double maxerr_cplx(S2LET_COMPLEX(double) * a, S2LET_COMPLEX(double) * b, int size);
28 
29 double maxerr(double* a, double* b, int size);
30 
31 unsigned long binomial_coefficient(int n, int k, int exact);
32 
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif
s2let_math_spline_scalingfct
double s2let_math_spline_scalingfct(double x, double y)
Definition: s2let_math.c:45
s2let_math_kappa0_quadtrap_needlet
double s2let_math_kappa0_quadtrap_needlet(double a, double b, int n)
Definition: s2let_math.c:75
ran2_dp
double ran2_dp(int idum)
Definition: s2let_math.c:97
S2LET_COMPLEX
#define S2LET_COMPLEX(TYPE)
Definition: s2let_types.h:15
s2let_math_kappa0_quadtrap_s2dw
double s2let_math_kappa0_quadtrap_s2dw(double a, double b, int n, double B)
Definition: s2let_math.c:53
maxerr_cplx
double maxerr_cplx(S2LET_COMPLEX(double) *a, S2LET_COMPLEX(double) *b, int size)
binomial_coefficient
unsigned long binomial_coefficient(int n, int k, int exact)
Definition: s2let_math.c:241
maxerr
double maxerr(double *a, double *b, int size)
Definition: s2let_math.c:154