diff options
author | Arun Isaac | 2021-02-23 16:24:48 +0530 |
---|---|---|
committer | Arun Isaac | 2021-02-23 16:24:48 +0530 |
commit | 25343d3723ae70690f056b0a501f5941892fbf93 (patch) | |
tree | bc7d465ba091587438d71ad5c258f195448aeda2 /include | |
parent | 59c0f5d621d665a2ab48cc760b561a7b610ab5fd (diff) | |
download | nsmc-25343d3723ae70690f056b0a501f5941892fbf93.tar.gz nsmc-25343d3723ae70690f056b0a501f5941892fbf93.tar.lz nsmc-25343d3723ae70690f056b0a501f5941892fbf93.zip |
Provide test integrals.
* include/integrands.h, src/integrands.sc: New files.
Diffstat (limited to 'include')
-rw-r--r-- | include/integrands.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/integrands.h b/include/integrands.h new file mode 100644 index 0000000..b4735a8 --- /dev/null +++ b/include/integrands.h @@ -0,0 +1,15 @@ +#ifndef INTEGRANDS_H +#define INTEGRANDS_H + +#include <gsl/gsl_vector.h> + +typedef struct { + double *coefficients; + int degree; +} polynomial_integrand_params; + +double polynomial_integrand (double r, const gsl_vector* x, void *params); +double gaussian_integrand (double r, const gsl_vector* x, void *params); +double x_coordinate_integrand (double r, const gsl_vector* x, void *params); + +#endif |